我真的被卡住了。 基本上我对jquery完全陌生,但需要在mousover上添加某种计时器,以便在鼠标移过页面时页面不会混乱。 这里是我的脚本.. 无论如何,我可以很容易地实现它?需要添加悬停意图?
<script>
jQuery('cc').mouseover(function() {
$("squareleft3").hide();
$("twitter").hide();
$("facebook").hide();
$("squareright").hide();
$("getintouch").hide();
$("getintouch2").hide();
$("getintouch3").hide();
$("vicarimage").hide();
$("squaredown2").hide();
$("squareleft2").hide();
$("one").hide();
$("whatis").hide();
$("squaredown").hide();
$("whoweare").hide();
if ($("whoweare:first").is(":hidden"))
if ($("squaredown:first").is(":hidden"))
if ($("squareleft3:first").is(":hidden")) {
if ($("twitter:first").is(":hidden"))
if ($("squareright:first").is(":hidden"))
if ($("getintouch:first").is(":hidden"))
if ($("getintouch2:first").is(":hidden"))
if ($("getintouch3:first").is(":hidden"))
if ($("vicarimage:first").is(":hidden"))
if ($("squaredown2:first").is(":hidden"))
if ($("squareleft2:first").is(":hidden"))
if ($("one:first").is(":hidden"))
if ($("whatis:first").is(":hidden"))
jQuery('getinvolved').fadeIn();
jQuery('squareleft').slideToggleWidth();
} else {
$("squareleft").hide();
$("getinvolved").hide();
} });
</script>
干杯。
对每一只老鼠都有很大的好处。 – 2010-05-13 01:06:55
你可以帮忙吗?它驱使我疯狂.. 最简单的方法是通过点击而不是鼠标悬停来实现它,以便它可以及时清除任何东西。但我最好宁愿使用鼠标悬停。 – 2010-05-13 01:10:15
你所有的选择器都是错误的。 (除非你有一些奇怪的HTML) – SLaks 2010-05-13 01:10:28