我使用jQuery的顯示功能創建的jquery彈出窗口,在幾秒鐘內消失,這是不是打算。 我想彈出留...jQuery的顯示功能,在一段時間內淡出彈出
我怎麼能告訴jQuery來做到這一點?
繼承人是我的代碼,
jQuery(document).ready(function(){
jQuery('#popuup_div.popup_msg').hide();
$(a.xyz).click(function(e)
{
var height = jQuery('#popuup_div').height();
var width = jQuery('#popuup_div').width();
leftVal=e.pageX-(width/1.5)+"px";
topVal=e.pageY-(height/13)+"px";
jQuery('#popuup_div').css({left:leftVal,top:topVal}).show();
});
jQuery('#image').click(function(e)
{
jQuery('#popuup_div').fadeOut('fast');
});
});
html
<div id='popuup_div' class='popup_msg'>
<div id='image'>
gets the image
</div>
<br>
some message
</div>
css:
.popup_msg{
position:absolute;
z-index:100;
width:700px;
height:250px;
text-align:justify;
color:Black;
font: 14px Verdana, Arial, Helvetica, sans-serif;
background-color:yellow;
}
你可以給我們一些代碼嗎? :) – 2010-06-23 16:52:26
這是一個來自插件的特殊彈出功能嗎?如果沒有,您認爲我們可以在沒有代碼的情況下幫助您嗎? – 2010-06-23 16:52:43
好傢伙,抱歉沒有張貼代碼...反正,我剛添加的代碼在我的問題...... 感謝 – texpert 2010-06-23 17:54:13