Help - Search - Members - Calendar
Full Version: Image Rollover
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > JavaScript
DemptD
What is the best and fastest way to do a image rollover?

Change from this:



To this:



Any good ideas? unsure.gif
Banjo
You can do it in css, something like...

CODE
#menu a {
   background-image: url(images/home1.gif);
}

#menu a:hover {
   background-image: url(images/home2.gif);
}


You could put that into one like of html using stlye tag thingy like <a href="#" style="">

You can also do it in Javascript.

http://blinding-light.com/tutorials/read/19
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.