我基本上写我自己的jQuery悬停效果插件,除了在IE(9,8,7)在所有浏览器工程....jQuery的悬停效果问题
这里是链接:http://www.fiver.org/web/testing 这是代码:
function go()
{
hoverEffect = document.getElementsByName("hoverEffect");
for (i=0; i<hoverEffect.length; i++)
{
$(hoverEffect[i]).bind('mouseenter', bMouseOver);
$(hoverEffect[i]).bind('mouseleave', bMouseOut);
}
function bMouseOver(e)
{
$(this).find(".fadebox")
.animate({opacity: 1},
300);
}
function bMouseOut(e)
{
$(this).find(".fadebox")
.animate({opacity: 0},
{duration: 'slow'});
}
}
$(document).ready(function(){
go();
});
它是一个的裂纹我的头一个基本的悬停效果!你有什么想法???
最佳,
你有点给了我们一半的代码和一个断开的链接 – Chris 2011-05-17 16:04:04
@Chris格式问题,我至少修复了这个部分。 – 2011-05-17 16:06:07
那是一个破链接 – Neal 2011-05-17 16:10:34