【参加讨论】<html>
<head><title> eve html </title>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<style type="text/css" title="">
td{font-size: 12px;}
</style>
</head>
<body bgcolor="#e8eeed" background="" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id=emeng style="border-right: #455690 1px solid; border-top: #a6b4cf 1px solid; z-index: 99999; left: 64px; visibility: hidden; border-left: #a6b4cf 1px solid; width: 168px; border-bottom: #455690 1px solid; position: absolute; top: 374px; height: 115px; background-color: #c9d3f3">
<table style="border-top: #ffffff 1px solid; border-left: #ffffff 1px solid"
cellspacing=0 cellpadding=0 width="100%" bgcolor=#cfdef4 border=0>
<tbody>
<tr>
<td
style="font-size: 12px; background-image: none; color: #0f2c8c"
width=30 height=24> </td>
<td
style="padding-left: 4px; font-weight: normal; font-size: 12px; background-image: none; color: #1f336b; padding-top: 4px"
valign=center width="100%"><strong>qq 短消息提示</strong></td>
<td valign=center align=right width=19 2px? padding-top: 2px;
padding-right:><span title=关闭
style="font-weight: bold; font-size: 12px; cursor: hand; color: red; margin-right: 4px"
onclick=closediv()>×</span></td></tr>
<tr>
<td
style="padding-right: 1px; background-image: none; padding-bottom: 1px"
colspan=3 height=90>
<div
style="border-right: #b9c9ef 1px solid; padding-right: 13px; border-top: #728eb8 1px solid; padding-left: 13px; font-size: 12px; padding-bottom: 13px; border-left: #728eb8 1px solid; width: 100%; color: #1f336b; padding-top: 18px; border-bottom: #b9c9ef 1px solid; height: 100%">
<div align=left>
<p>您有<font color=#ff0000>1</font>封新短消息 </p>
<div align=center>
你的访问已经为(<font color=#ff0000><b>771621</b>
</font>)带来了qq币,你也可以!<br><br>
<a href="#" target=_blank><font
color=#ff0000><b>免费获得qq币</b></font></a></div></div></div>
<script language=javascript>
//more javascript from http://www.smallrain.net
window.onload = getmsg;
window.onresize = resizediv;
window.onerror = function(){}
//短信提示使用(asilas添加)
var divtop,divleft,divwidth,divheight,docheight,docwidth,objtimer,i = 0;
function getmsg()
{
try{
divtop = parseint(document.getelementbyid("emeng").style.top,10)
divleft = parseint(document.getelementbyid("emeng").style.left,10)
divheight = parseint(document.getelementbyid("emeng").offsetheight,10)
divwidth = parseint(document.getelementbyid("emeng").offsetwidth,10)
docwidth = document.body.clientwidth;
docheight = document.body.clientheight;
document.getelementbyid("emeng").style.top = parseint(document.body.scrolltop,10) + docheight + 10;// divheight
document.getelementbyid("emeng").style.left = parseint(document.body.scrollleft,10) + docwidth - divwidth
document.getelementbyid("emeng").style.visibility="visible"
objtimer = window.setinterval("movediv()",10)
}
catch(e){}
}
function resizediv()
{
try{
divheight = parseint(document.getelementbyid("emeng").offsetheight,10)
divwidth = parseint(document.getelementbyid("emeng").offsetwidth,10)
docwidth = document.body.clientwidth;
docheight = document.body.clientheight;
document.getelementbyid("emeng").style.top = docheight - divheight + parseint(document.body.scrolltop,10)
document.getelementbyid("emeng").style.left = docwidth - divwidth + parseint(document.body.scrollleft,10)
}
catch(e){}
}
function movediv()
{
try
{
if(parseint(document.getelementbyid("emeng").style.top,10) <= (docheight - divheight + parseint(document.body.scrolltop,10)))
{
window.clearinterval(objtimer)
objtimer = window.setinterval("resizediv()",1)
}
divtop = parseint(document.getelementbyid("emeng").style.top,10)
document.getelementbyid("emeng").style.top = divtop - 1
}
catch(e){}
}
function closediv()
{
document.getelementbyid('emeng').style.visibility='hidden';
if(objtimer) window.clearinterval(objtimer)
}
</script>
</td>
</tr>
</table>
</div>
</body>
</html>