<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<SCRIPT>
var oPopup = window.createPopup();
var PopW=250; //窗口宽
var PopH=100; //窗口高,建议个位数为0
var PopT=50; //越小越快
var PopO=3000; //越大显示越久
var popR=10; //距离右边
var popF=20; //距离底部
//以下不用修改
var popTop=10;
var PopTimer;
popF=popF+34;
function popmsg(msgtitle,msgstr){
var Popwin="<div style=\"border:1px #3B82BD solid;width:"+PopW+"px;height:"+(PopH-0)+"px;padding:3px\">";
Popwin+="<div style=\"height:100%;border:1px #6D93C8 solid;background:#7BACD4;color:#ffffff;padding:2px;font-size:12px;line-height:18px;overflow:auto\"><b>"+msgtitle+":</b><br>"+msgstr+"</div></div>";
oPopup.document.body.innerHTML = Popwin;
PopOpen();
}
function PopOpen(){
if(popTop<PopH+10){
oPopup.show(screen.width-(PopW+popR),screen.height-(PopH+popF),PopW,popTop);
popTop+=10;
}else{
return;
}
setTimeout("PopOpen()",PopT);
}
setTimeout("oPopup.hide()",PopO)
popmsg("温馨提示","提示内容提示内容提提示内容提示内容提提示内容提示内容提提示内容提示内容提");
</SCRIPT>
</body>
</html>
posted on 2007-11-26 14:12
汪杰 阅读(268)
评论(0) 编辑 收藏 引用 所属分类:
Dhtml DOm