惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Cisco Blogs
爱范儿
爱范儿
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
Jina AI
Jina AI
Project Zero
Project Zero
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
Simon Willison's Weblog
Simon Willison's Weblog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tenable Blog
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
Last Week in AI
Last Week in AI
月光博客
月光博客
雷峰网
雷峰网
G
Google Developers Blog
V
V2EX
T
Tor Project blog
罗磊的独立博客
Schneier on Security
Schneier on Security
Know Your Adversary
Know Your Adversary
W
WeLiveSecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy International News Feed
S
Securelist
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
Scott Helme
Scott Helme
I
Intezer
T
Threat Research - Cisco Blogs
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
C
CERT Recently Published Vulnerability Notes
Security Archives - TechRepublic
Security Archives - TechRepublic
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LINUX DO - 最新话题
N
News | PayPal Newsroom
L
Lohrmann on Cybersecurity
T
Troy Hunt's Blog
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
人人都是产品经理
人人都是产品经理
Latest news
Latest news
AWS News Blog
AWS News Blog
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - 月异星邪

Anaconda官方网站下载慢的解决方法 定时任务调度自动提醒企业微信 天高云淡 leobbs皮肤 - 月异星邪 - 博客园 http://www.xywq.com/files/ganzhi11.htm IIS6 Http压缩配置方法 - 月异星邪 - 博客园 IIS6,SESSION超时时间过短的解决(未测试) 如何实现函数IF的嵌套超过七层? 常用asp.net代码 - 月异星邪 - 博客园 在ASP.NET中使用Session常见问题集锦 ASP.NET 2.0:使用用户控件和定制的Web部件个人化你的门户网站 ASP.NET中常用的文件上传下载方法 Infragistics中WebGrid的MultiColumn Headers设计 轻松实现UltraWebGrid中的分页控制 http://www.bo-blog.com/index.php?l=zh_tw&mod=skins ASP.NET中常用的文件上传下载方法 ASP.NET 2.0中使用webpart系列控件 ASP.NET2.0 WebPart实例教程 数字转换为大写人民币(附源码) 用ASP.NET 2.0实现AJAX风格的Web开发
仿QQ信息弹出 - 月异星邪 - 博客园
月异星邪 · 2009-03-15 · via 博客园 - 月异星邪


    <script language="javascript" type="text/javascript">
    //<!--
        var h_Body = document.body.clientHeight;
        document.getElementById("details").style.height = h_Body - 72;              
      
        var PopWidth = 260; //信息框宽度
        var PopHeight = 180; //信息框高度
        var PopBorder = 25; //距屏幕边缘的距离
        var PopShow = 10000; //信息框的显示时间
        var PopTop = 0;
        var showtime, hidetime;
        var oPopup = window.createPopup();
        function popmsg(msgstr)
        {
            var winstr="<table  valign=\"top\" style=\"border: 1 solid #6D93C8\" width='" + PopWidth + "' height='"
                             + PopHeight + "' border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >";  
            winstr+="<tr><td bgcolor=\"#BCCCDF\" onClick=\"parent.pophide();\" valign=\"top\" align=\"center\"  height=\"20\" style=\"font-size:14px; color: #6D93C8; face: Tahoma;filter:Blur(add=1,direction=45,strength=8) \">你有新短消息:</td></tr><tr><td valign=\"top\" align=\"center\"><table valign=\"top\" width=\"90%\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";  
            winstr+="<tr><td valign=\"top\" style=\"font-size:12px; color: #6D93C8; face: Tahoma\">"+msgstr+"</td></tr></table></td></tr></table></div>";  
             
            oPopup.document.body.innerHTML = winstr;  
            popshow();
            oPopup.document.body.onclick = pophide; //单击信息框时开始隐藏
            //setInterval('window.focus()',0); //让IE重获取焦点 
            //setInterval('window.focus()',0); //让IE重获取焦点
         }    
       //信息框显示程序
        function popshow() {
            //当不足以显示信息框全部时,缩小信息框高度
            var tmpHeight = PopTop < PopHeight ? PopTop : PopHeight;

            //信息框定位,screen.width:屏幕宽度、screen.height:屏幕高度
            oPopup.show(screen.width - (PopWidth + PopBorder), screen.height - PopTop, PopWidth, tmpHeight);
           
            if (PopTop < (PopHeight + PopBorder)) {
                PopTop = PopTop + 10; //信息框位置递增
            }
            else {
                setTimeout("pophide();", PopShow); //准备隐藏信息框  一直显示
            }
            showtime = setTimeout("popshow();", 100);
        }
        //信息框隐藏程序
        function pophide() {
            if (showtime) {
                clearTimeout(showtime); //清除显示时间句柄
            }
            var tmpHeight = PopTop < PopHeight ? PopTop : PopHeight;
            oPopup.show(screen.width - (PopWidth + PopBorder), screen.height - PopTop, PopWidth, tmpHeight);
            if (PopTop > 0) {
                PopTop = PopTop - 10;
                hidetime = setTimeout("pophide();", 100);
            }
            else {
                clearTimeout(hidetime);
                oPopup.hide();          //完全隐藏信息框
            }
        }
        /*提示间隔时间*/ 
        var secs=10;//第一次提示时间秒  
        function checkServer(secs)
        {  
            for(i=1;i<=secs;i++)
            {  
              window.setTimeout("update(" + i + ")", i * 1000);  
            }  
        }  
        function update(num) {  
           if(num == secs)
           {
             var isRemind=document.getElementById("isRemind").checked;
             var RemindTime = document.getElementById('ddlRemindTime').value;
             if(isRemind)
             {                
                 var out=Main.GetMSG("<%=this.UserId %>").value
                 if(out.length>0)
                 {
                    popmsg("<BR>"+out);
                 }
                 secs=1*RemindTime;//提示时间秒  
                 for(i=1;i<=secs;i++)
                 {  
                    window.setTimeout("update(" + i + ")", i * 1000);  
                 }
             }
             else
             {
                 secs=1*RemindTime;//提示时间秒  
                 for(i=1;i<=secs;i++)
                 {  
                    window.setTimeout("update(" + i + ")", i * 1000);  
                 }
             }
           }  
           else
           {  
              printnr = secs-num;
           }  
        }  
        checkServer(secs);
    // -->
    </script>