我真的想首先進入jQuery。用jQuery移動氣球
我有一個網站即時製作,ove氣球點擊它漂浮起來,然後去目標頁面。然而,他們似乎互相攻擊。
<script type="text/javascript">
$(document).ready(function(){
$("a.balloon-nav").click(function(event){
var target = $(this).attr("href");
var zIndex = $(this).css("z-index");
$(this).attr("href", "#").css("z-index", "100");
$(this).animate({ top: "-500px" }, 1000, function() {
$(this).css("z-index", zIndex);
window.location=target;
alert("foo");
});
});
});
</script>
我也想知道使用「事件」和「傳播」的含義。
「bash into eachother」是什麼意思?我看着你發佈的鏈接。你的意思是他們不會一路走到最前面? – a432511