Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Rollovers Without JavaScript (Use CSS Instead) 3

Status
Not open for further replies.
Aug 27, 2001
502
US
I just came across this tutorial and thought others might benefit from it.

Usually, when a developer wants to create a button which changes on rollover, they will use the "onmouseover" and "onmouseout" events to trigger some JavaScript code which changes the image used for the button.

This tutorial breaks the JavaScript tether and shows how to do this using CSS and a single image. No more preloading the alternate images. This solution is so simple, I wish I would have thought of it. Oh well, here you go:
-Ron

“If you are irritated by every rub, how will you be polished?”
~ Mevlana Rumi


murof siht edisni kcuts m'I - PLEH
 
That's actually where I found this tutorial. I linked to the one I did because it was "short and to the point". However, I've discovered that alistapart.com is an excellent website for this kind of info.

Ron

“If you are irritated by every rub, how will you be polished?”
~ Mevlana Rumi


murof siht edisni kcuts m'I - PLEH
 
in the immortal words of C Montgomery Burns.."exxxcellent"..

cheers for those

 
Darkshadeau said:
I linked to the one I did because it was "short and to the point".
Hey cool, I didn't realize that was a tutorial that you wrote. Good work!

News and views of some obscure guy
 
I'd love to take credit for it, but I didn't write it. What I meant was "I linked to the one I linked to because..."

Sorry 'bout the confusing semantics.

[blush]

“If you are irritated by every rub, how will you be polished?”
~ Mevlana Rumi


murof siht edisni kcuts m'I - PLEH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top