我寫了這個jQuery腳本。 它的工作原理有些不錯。當用戶使用鼠標飛出飛機時,我希望這個飛行結束。我會怎麼做?jQuery飛出
這裏是下面的代碼:
<script language="javascript">
$(document).ready(function() {
$('#slick-box').hide();
$('a#slick-toggle').mouseover(function() {
$('#slick-box').toggle(400);
}).mouseout(function(){
$('#slick-toggle').hide();});
});
</script>
<style>
</style>
</head>
<body>
<a id="slick-toggle" href="#"> toggle the box </a>
<div style="position:relative;outline:1px dashed green;padding:10px;">
<div id="slick-box" style="position:absolute;outline: 1px dashed hotpink; color:#fff; background-color:#000; opacity:0.8; filter:80;top:0px; left:0px ;">
<h2>music name </h2>
<p> This will be shown and hidden</p>
</div>
</div>
<p>lorem ip sum loerm ip lorem ip sum lorem ipsum</p>
<p>lorem ip sum loerm ip lorem ip sum lorem ipsum</p>
<p>lorem ip sum loerm ip lorem ip sum lorem ipsum</p>
<p>lorem ip sum loerm ip lorem ip sum lorem ipsum</p>
<p>lorem ip sum loerm ip lorem ip sum lorem ipsum</p>
<p>lorem ip sum loerm ip lorem ip sum lorem ipsum</p>
<p>lorem ip sum loerm ip lorem ip sum lorem ipsum</p>
</body>
什麼是彈出窗口? – kobe 2010-10-24 04:31:44