$(function(){
        $("img").bind("mouseover",function(){
                $(this).attr("src","/images/menu-my-account-hover.png");
        });
});

but this is the worst way you can do rollovers. You should be doing this in 
pure CSS, and the best way would be to use an image sprite.


Teddy Hong wrote:
If I have a tag image like this..

<img alt="My Account" src="/images/menu-my-account.png"/>

and when hover that image I want became like this

<img alt="My Account" src="/images/menu-my-account-hover.png"/>

How to code this with jquery?

Thanks....

Reply via email to