关闭

模仿MSN消息提示的效果

1367人阅读 评论(0) 收藏 举报

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="5">
<title>七度空间</title>
 
</head>

<body bgcolor="#99CC99">
<h2>模仿MSN消息提示的效果</h2>
<p>说明:很酷的模仿MSN消息提示的效果。打开页面之后你会发现右下角有消息框弹出,跟MSN的消息框很相似!<br>
</p>
<p>

<SCRIPT>
var oPopup = window.createPopup();
var popTop=50;
function popmsg(msgstr){
var winstr="<table style=/"border: 1 solid  #FFA6CA/"  width=/"241/" height=/"172/" border=/"0/" cellpadding=/"0/" cellspacing=/"0/"  background=/"/files/pic/20050817/200581701440211899.gif/" >";
winstr+="<tr><td height=/"30/"> </td></tr><tr><td align=/"center/"><table width=/"90%/" height=/"110/" border=/"0/" cellpadding=/"0/" cellspacing=/"0/">";
winstr+="<tr><td valign=/"top/" style=/"font-size:12px; color: red; face: Tahoma/">"+msgstr+"</td></tr></table></td></tr></table>";
oPopup.document.body.innerHTML = winstr;
popshow();
}
function popshow(){
window.status=popTop;
if(popTop>1720){
clearTimeout(mytime);
oPopup.hide();
return;
}else if(popTop>1520&&popTop<1720){
oPopup.show(screen.width-250,screen.height,241,1720-popTop);
}else if(popTop>1500&&popTop<1520){
oPopup.show(screen.width-250,screen.height+(popTop-1720),241,172);
}else if(popTop<180){
oPopup.show(screen.width-250,screen.height,241,popTop);
}else if(popTop<220){
oPopup.show(screen.width-250,screen.height-popTop,241,172);
}
popTop+=10;
var mytime=setTimeout("popshow();",50);
}
popmsg("  你有新的信息,请注意接收!");
</SCRIPT>

</p>
</body>
</html>

 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1458607次
    • 积分:14203
    • 等级:
    • 排名:第893名
    • 原创:287篇
    • 转载:130篇
    • 译文:0篇
    • 评论:318条
    文章分类
    文章存档
    最新评论