Computing.Net > Forums > Web Development > Buttons with frames help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Buttons with frames help

Reply to Message Icon

Name: hamburglar
Date: June 8, 2004 at 11:12:46 Pacific
OS: xp
CPU/Ram: Emach/512
Comment:

A friend of mine was working on some buttons that nicely change color as one's mouse would glide over it.
@- http://www.freewebs.com/fhcsc
First off, he left them looking quite poorly. I could probably fix this, but my main question is: Is there a better way to do this?
In other sites that I have created I've passed on using frames. And my friend hasn't figured out yet how to choose a specific frame using these buttons lilke you would normally do with a regular link.

In summary, Is there a better way to do this? If not, then how do I get these buttons looking good and usable with frames?

Thank you and please excuse the length.


"Much madness is divinest sense." - Emily Dickinson



Sponsored Link
Ads by Google

Response Number 1
Name: Jamie_McCoy
Date: June 8, 2004 at 13:20:41 Pacific
Reply:

link didnt work

mouse overs are created using CSS

you can also use flash

Sign Me Guestbook!

jaymc.co.nr


0

Response Number 2
Name: SN
Date: June 8, 2004 at 15:03:38 Pacific
Reply:

"mouse overs are created using CSS "
I think you mean javascript. The only mouseover effect CSS is capable of is changing the color of link text. To my knowledge, CSS doesn't handle image rollovers (except for a few little, limited tricks.)

Buttons only need slight modifications to work with frames...You need to change the TARGET attribute in whatever the button is activating (link, form, etc.)

-SN


0

Response Number 3
Name: jam14online
Date: June 8, 2004 at 22:57:05 Pacific
Reply:

SN,

What about the following page? It uses CSS to make rollover buttons:

www.james-greenwood.co.uk/hoverbuttons.html


James



0

Response Number 4
Name: SN
Date: June 8, 2004 at 23:10:51 Pacific
Reply:

James-
That's what I was talking about when I said "limited tricks". You can change the background color onmouseover using CSS, but it's not a true image rollover.

Not to say that it's not a nice effect or that you shouldn't do it that way...By all means go ahead. But you just can't use CSS if you need 2 images (which would constitute an image rollover)

I shouldn't have said that changing link text is the only thing you can do on mouseover using CSS...Obviously you can't change link text using CSS. I meant link style (which is what your page does).

-SN


0

Response Number 5
Name: SN
Date: June 8, 2004 at 23:14:58 Pacific
Reply:

Yet another correction...You might be able to fake a "true image" rollover by making use of the background-image property in CSS.

It's not the worst idea in the world, but it's certainly not what the property was meant for. You'd run into minor problems with printing and other things where background images are often ignored.

-SN


0

Related Posts

See More



Response Number 6
Name: b0red
Date: June 9, 2004 at 22:04:06 Pacific
Reply:

You can change the look of form buttons with an onmouseover event, and change it back with an onmouseout event. It is also possible to load pages in frames by clicking a button using javascript and the onclick event.

However these methods are not reliable. It's much better to use regular links and possibly css to create a menu.



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Buttons with frames help

Random Button With Flash? www.computing.net/answers/webdevel/random-button-with-flash/2570.html

Scrollbar problem with frames www.computing.net/answers/webdevel/scrollbar-problem-with-frames/1960.html

Hide the bottom frame with a button www.computing.net/answers/webdevel/hide-the-bottom-frame-with-a-button/3146.html