/ Published in: jQuery
Expand |
Embed | Plain Text
$(document).ready(function(){ if (document.all) { $("#nav li").hoverClass("hover"); } }); $.fn.hoverClass = function(c) { return this.each(function(){ $(this).hover( function() { $(this).addClass(c); }, function() { $(this).removeClass(c); } ); }); };
You need to login to post a comment.
