MichiganRon
MIS
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
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