使用jquery.gritter.js实现弹框提示信息


jQuery(document).ready(function() {    
     setInterval(function(){
         $.post('servlet/newNcheCheck',function(data){
              if(data=="true"){
                    setTimeout(function () {
                            //document.getElementById("sound").src="<%=basePath%>admin/media/global.wav";
                            var unique_id = $.gritter.add({
                                        title: '<font color="#5a0101">新消息</font>',
                                        text:'你有新商机消息未处理<br><a href="modules/shniche/diallogMaint.jsp" style="color:#ccc">商机信息管理</a>',
                                        image: 'images/msg.png',
                                        sticky: true,
                                        time: '',
                                        class_name: 'gritter-light'
                                    });
                            setTimeout(function () {
                                        $.gritter.remove(unique_id, {
                                            fade: true,
                                            speed: 'slow'
                                             });
                                          }, 12000);
                            }, 2000);
              }
        });
    },2000);
});


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM