Revision: 9045
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 18, 2008 12:37 by iTony
Initial Code
/* plugin */ jQuery.fn.dwFadingLinks = function(settings) { settings = jQuery.extend({ color: '#ff8c00', duration: 500 }, settings); return this.each(function() { var original = $(this).css('color'); $(this).mouseover(function() { $(this).animate({ color: settings.color },settings.duration); }); $(this).mouseout(function() { $(this).animate({ color: original },settings.duration); }); }); }; /* usage */ $(document).ready(function() { $('.fade').dwFadingLinks({ color: '#008000', duration: 700 }); });
Initial URL
http://davidwalsh.name/fading-links-jquery-dwfadinglinks
Initial Description
Initial Title
Fadint links to another color
Initial Tags
jquery, links
Initial Language
JavaScript