Home Article 手机端弹框自动消失

手机端弹框自动消失

Release time:2019-07-22 Author:Mr.赵 Reading volume:128

<script>

var HuiFang={
           
m_tishi :null,//全局变量 判断是否存在div,
//
提示div 等待2秒自动关闭
           
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);
                }
            },
        }

</script>


HuiFang.Funtishi("请输入手机号。");



  
I want to comment
Leave a message
http://boke.zhaozhiqi.top/index.php/
User login
You have not written any reviews yet!
You have commented!
Can only praise once!
You have a collection!