Fade In/Out on Hover

$(document).ready(function(){ $(“.thumbs img”).fadeTo(“slow”, 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads $(“.thumbs img”).hover(function(){ $(this).fadeTo(“slow”, 1.0); // This should set the opacity to 100% on hover },function(){ $(this).fadeTo(“slow”, 0.6); // This should set the opacity back to 60% on mouseout }); });

Read More

On Hover add and Remove a class

Let’s say you want to have a suckerfish dropdown, or maybe you just want to add a cool hover on a div, well in some browsers thats not allowed to be done with pure css, hence use this simple technique and you will have cross browser hover with any two class you want. $(‘.onhover’).hover( function(){ […]

Read More

Hover On/Off

If you want to find the wrapping DIV element (regardless of the ID on that DIV) then you’ll want this jQuery selector: $(“a”).hover( function () { // code on hover over }, function () { // code on away from hover } ); source

Read More