通过WEB实现的定时提醒功能...

时间:2022-08-31 20:56:15

<SCRIPT Language=Javascript>
<!--
var oPopup = window.createPopup();
var popTop=50,pwidth=241,pheight=180;
function popmsg(n){
 var oPopBody = oPopup.document.body;
 oPopBody.style.backgroundColor = "lightyellow";
 oPopBody.style.border = "solid black 1px";
 oPopBody.innerHTML = "Click outside <B>popup</B> to close.";

 var msgstr="PALL IMS系统 特别提醒: <HR><a href=http://www.51qqdm.cn>您有"+n+"项待办事宜需要处理.</a>";
 var winstr="<table width='"+pwidth+"' height='"+pheight+"' border='1' cellpadding='10' cellspacing='10'>";
 winstr+="<tr><td valign='top' style='font-size:12px;'>"+msgstr+"</td></tr></table>";
 oPopup.document.body.innerHTML = winstr;
 popshow();
}
function popshow(){
 var mytime=setTimeout("popshow();",20);
 popTop+=10;
 if(popTop>1720){
  clearTimeout(mytime);
  oPopup.hide();
  popTop=50;
  return;
 }else if(popTop>1610&&popTop <1720){
  oPopup.show(screen.width-pwidth, screen.height,     pwidth,1720-popTop);
 }else if(popTop < pheight){
  oPopup.show(screen.width-pwidth, screen.height,     pwidth,popTop);
 }
 window.status=popTop;
}

-->
</SCRIPT>
点击提醒.<button onclick='popmsg(6);'>CLICK</button><BR/>
定时:每隔一分钟提醒一次.<button onclick='setInterval("popmsg(6)",60000);'>CLICK</button>