Tag Archives: MicroTut: The jQuery Hover Method

MicroTut: The jQuery Hover Method

When building a navigation menu, or any other jQuery script, it is often necessary to have a robust method with which to define a mouse over and mouse out state. This is where the hover() method comes along. Here is how it is used: $(‘.selectorClass’).hover( function(){ $(this).stop().fadeTo(‘slow’,0.4); }, function(){ $(this).stop().fadeTo(‘slow’,1); }); This assigns the first function to… Read More »