rollover images with Jquery

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-05-25T05:00:35Z Indexed on 2010/05/25 5:21 UTC
Read the original article Hit count: 344

Filed under:
|

Beginner question here. I'm going to make a Jquery function that is used to change an image when hovering over it. I use the id name as the selector. How do I make it generic so that I don't have to have a copy of the function for every single tag with a rollover image?

$("#home img").hover(    
        function(){ 
            blah
        },
        function(){ 
            blah
        }
 );

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about web-development