Stop Using Javascript Image Rollovers and Use CSS Instead
Fri, 06/01/2007 - 23:14 — cactus
Using javascript rollovers is so 1999. Use CSS instead. What you're hesitant? Why? Not all browsers support it you say? Too bad, they can upgrade. Even still, not everyone has javascript turned on since it's such a security risk...
Something like this should work.
<style type="text/css">
.sw33t {
background-image:url(someimage.jpg);
}
.sw33t:hover {
background-image:url(someotherimage.jpg);
}
</style>
<a href="#" class="sw33t">Mouse over me</a>
- Comment
- 932 reads
User login
Menu
Who's online
There are currently 0 users and 5 guests online.
Powered by Drupal - Design by Artinet - © 2007 SEO Cactus












Comments
DBYUfFLWny
ambien dangers 332126 buy propecia from usa 10687 acomplia amp phentermine diet pills 8[[[
hOOsLdDdOOhMIMsqOZ
florida homeowners insurance %D car insurance qoutes dsrtpu cheap home insurance 048
iNVqohpJiGUA
new york car insurance 186 life insurance quotes 577264 cheap health insurance 086
fPdHbigbaGYIwtSN
health insurance for individuals %OO mazindol best buy 875142 oxazepam :-]
ZnkvuEISEeJXsb
life insurance %P
lUTfsyXOeF
health care insurance 4564 slots lmy car insurence rwvr
OVMAvvyFFbWpHGcm
QLOH2Q fgnnuhjotiqm, [url=http://thdghlzbxajs.com/]thdghlzbxajs[/url], [link=http://jhjwphhdlipx.com/]jhjwphhdlipx[/link], http://xsoegwniyitl.com/