Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

link didnt work
mouse overs are created using CSS
you can also use flash
Sign Me Guestbook!
jaymc.co.nr

"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

SN,
What about the following page? It uses CSS to make rollover buttons:
www.james-greenwood.co.uk/hoverbuttons.html
James

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

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

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.

![]() |
![]() |
![]() |

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