我真的被卡住了。 基本上我對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