jQuery RollOver plugin

/ Published in: jQuery
Save to your folder(s)

What it does is look for img tag and on rollover change the source path from "anyimage.jpg" to "anyimage_hover.jpg". It add the suffix "_hover" at the end of the src name without changing the extension. If you look at the code you will see that it also take the span tag. This is to support ie6 png image that has been transform by a pngfix.
Example: $("img.rollover").rollover();

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.