• 微信号:Zh-y9213
您当前的位置:爱资源分享网 > > 网站源码 > 网页特效

可关闭的jQuery右下角浮动提示框窗口代码

栏目:网页特效时间:2021-08-14 23:04阅读数:40人阅读
十分简单实用的一款可关闭的jQuery网页右下角浮动提示框窗口代码,点击关闭后提示框窗口再次弹出显示下一条消息。


js代码

<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script>
var tk_index=0;
var xx_num;
$(function(){
     xx_num=$(".tipfloat").attr("data-num");
    tankuan()

    $(".close").click(function(){
        $(".tipfloat").animate({height:"hide"},800);
        if(tk_index!=xx_num){
             setTimeout(tankuan,1000);
       }

    });
})

function tankuan(){
    if(tk_index!=xx_num){     
        $(".tipfloat").animate({height:"show"},800);
		
        //文本输出可删除
		$(".xx_nrong").html(tk_index);
        tk_index++;
     }
}

</script>


在线预览
资源均来自第三方,谨慎下载,前往第三方网站下载

本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。

如果侵犯了你的权益请来信告知我们删除。邮箱:737597453@qq.com