|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
For the life of me, I can not find a book that tells me how to change the color of a link when someone moves their mouse over it. Could you guys help? thx Josh |
|
#2
|
|||
|
|||
|
Designing with javascript: Creating Dynamic Web Pages, by Nick Heinle. ISBN 1565923006
pages 140-141 <HTML> <HEAD> <STYLE> .on {color:blue} .off{color:black} </STYLE> <BODY> <A HREF="customers.html" CLASS="off" onMouseOver="this.className='on';" onMouseOut="this.className='off';" > Customers </A></BODY> </HTML> I've never used this myself. I just copied it right out of the book for you. (BTW: It's a good book to have.) |
|
#3
|
|||
|
|||
|
However! It's not cross-browser compatible, it'll only work in Explorer, although it may be implemented in NN 4.6, just released. As a browser and a webmaster, there's nothing I hate more than browser-biased sites...
adam |
|
#4
|
|||
|
|||
|
Oh my God! You're right! I didn't even realise that this was IE-dependent. I feel dirty.
It's ironic, too, because I develop Netscape-only intranet applications. I've just never had to bother with mouseovers or dynamically-assigned CSS classes. I apologise to Earth and all of its inhabitants. |
|
#5
|
|||
|
|||
|
Well, Netscape and Microflot are still going in different directions in some cases, no matter what the W3C have to say. If you want mouseover effects, you're probably better of sticking with images for the mo.
adam |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > How do I onMouseOver? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|