亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

jQuery彈出div層過(guò)2秒自動(dòng)消失

 更新時(shí)間:2016年11月29日 17:20:29   作者:qq_29596627  
這篇文章主要介紹了jQuery彈出div層過(guò)2秒自動(dòng)消失的相關(guān)資料,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下

下面給大家分享一段代碼關(guān)于jquery彈出div層并自動(dòng)消失的實(shí)現(xiàn)代碼,廢話不多說(shuō)了,具體代碼如下所示: 

var HuiFang={
m_tishi :null,//全局變量 判斷是否存在div,
//提示div 等待2秒自動(dòng)關(guān)閉
Funtishi: function (content, url) {
if (HuiFang.m_tishi == null) {
HuiFang.m_tishi = '<div class="xiaoxikuang none" id="app_tishi" style="z-index:9999;left: 15%;width:70%;position: fixed;background:none;bottom:10%;"> <p class="app_tishi" style="background: none repeat scroll 0 0 #000; border-radius: 30px;color: #fff; margin: 0 auto;padding: 1.5em;text-align: center;width: 70%;opacity: 0.8; font-family:Microsoft YaHei;letter-spacing: 1px;font-size: 1.5em;"></p></div>';
$(document.body).append(HuiFang.m_tishi);
}
$("#app_tishi").show();
$(".app_tishi").html(content);
if (url) {
window.setTimeout("location.href='" + url + "'", 1500);
} else {
setTimeout('$("#app_tishi").fadeOut()', 1500);
}
},
}

使用:

HuiFang.Funtishi("請(qǐng)輸入名字。");

以上所述是小編給大家介紹的jQuery彈出div層過(guò)2秒自動(dòng)消失,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評(píng)論