我用 jQuery 编写了一个非常简单的脚本。这个想法是淡化所有不透明的链接,除了图像链接。
这是我的代码:
$('#content_wrapper a, #footer_wrapper a, .dcmenu_market_link a').not('a img').each(function() {
$(this).css("opacity", "0.6");
$(this).hover(function() {
$(this).addClass('fade');
$(this).stop().animate({ opacity: 1.0 }, 600);
},
function() {
$(this).stop().animate({ opacity: 0.6 }, 600);
$(this).removeClass('fade');
});
});