我正在使用.fadeIn和.fadeOut,并可以得到一次发生的效果,问题是让它发生每次链接被淹没。我已经试过在.deQueue()和.stop()中无效。 (这里福利局,所以请耐心等待,彻底在你的解释 - 多少是仍然在我的头上)jQuery效果去了一次,但我需要它重复发生
<!DOCTYPE html>
<html>
<head>
<style>
p { position:relative; width:400px; height:90px; }
div {
position:fixed;
padding-top:25px;
top:300px;
left:300px;
display:none;
}
span { display:none; }
</style>
<script type="text/javascript" src="jQuery.js"></script>
</head>
<body>
<a href="#">MouseOver!</a>
<h3><div><span>Sample Text</span></div></h3>
<script>
$("a").mouseover(function() {
$("div").fadeIn(0, function() {
$("span").fadeIn(3000);
});
return false;
});
$("a").mouseout(function() {
$("h3").fadeOut(3000);
});
</script>
</div>
</body>
</html>
约瑟夫!我的男人!你钉了它。非常感谢。 – Scott
不客气。我很高兴能够帮助:) –
是否有一个快速解决方案来阻止它脉动?上面的例子没有这样做,但当我把它放在页面中时,我得到了这种不希望的效果。 – Scott