相忘于江湖

不抛弃,不放弃... 请给我勇敢,改变可以改变的;请给我坚强,接受不可以改变的;请给我智慧,分辨这两者。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

<html>
 <head>
  <title>HTMLPage1</title>
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
  <meta name="ProgId" content="VisualStudio.HTML">
  <meta name="Originator" content="Microsoft Visual Studio .NET 7.1">
 </head>
 
 <script language =javascript>
   var titlePopup
   var len;
  
   function InitMsgBox()
   { len = 0;
    titlePopup=window.createPopup();
    var titlePopupBody = titlePopup.document.body;
    titlePopupBody.style.border ="solid black 1px";
    var titleContent = "";
    titleContent = titleContent + "<table cellPadding='5' bgcolor='#65c1ff' width='100%' height='100%' border=0 cellspacing=0 cellpadding=0>";
    titleContent = titleContent + "<tr><td align=center><font size = 2>消息提醒</font></td></tr>";
    titleContent = titleContent + "<tr><td><font size = 2>内容</td></font></tr>";
    titleContent = titleContent + "<tr><td><font size = 2>内容</td></font></tr>";
    titleContent = titleContent + "<tr><td><font size = 2>日期</td></font></tr>";
    titleContent = titleContent + "</table>";   
    titlePopupBody.innerHTML = titleContent;
        
    ShowMsgBox();
   }
     
   function MsgBox()
   {
    len += 4;     
    if (len > 110)
    {  
     window.clearInterval(tID);    
    }       
    else
    {//170固定了消息提示框的宽度
     titlePopup.show(document.body.clientWidth - 170, document.body.clientHeight - len, 170, len, top.document.body);
    }   
   }
  
   var tID
   function ShowMsgBox()
   {
    tID = window.setInterval("MsgBox()",15);   
   }
 </script>
 
 <body MS_POSITIONING="GridLayout">
  <INPUT onclick="InitMsgBox()" id="Button1" style="Z-INDEX: 101; LEFT: 296px; POSITION: absolute; TOP: 344px" type="button"
   value="Button" name="Button1">
 </body>
</html>

 

posted on 2010-07-16 16:03  playman0211  阅读(385)  评论(0编辑  收藏  举报