如何通过网页方式实现MSN的弹出窗口?

如何通过网页方式实现MSN的弹出窗口?

转载CSDN
<script language="javascript">
var oPopup = window.createPopup();
var popTop=50;
function popmsg(titlestr, msgstr){
var winstr="<table width=/"255/" height=/"159/" border=/"0/" cellpadding=/"0/" cellspacing=/"0/" background=/"images/popbg.gif/">";
winstr+="<tr><td> </td></tr><tr><td align=/"center/"><table width=/"90%/" height=/"159/" border=/"0/" cellpadding=/"0/" cellspacing=/"0/">";
winstr+="<tr height=/"30/"><td style=/"font-size:12px;/" align=/"center/"><b style=/"color:red/">"+titlestr+"</b></td></tr>";
winstr+="<tr><td style=/"font-size:12px;/">"+msgstr+"</td></tr></table></td></tr></table>";
oPopup.document.body.innerHTML = winstr;
popshow();
}
function popshow(){
if(popTop>1620){
clearTimeout(mytime);
oPopup.hide();
return;
}else if(popTop<160){
oPopup.show(screen.width-255,screen.height,255,popTop);
}else if(popTop<220){
oPopup.show(screen.width-255,screen.height-popTop,255,159);
}
popTop+=10;
var mytime=setTimeout("popshow();",60);
}
popmsg("uGain", "<center>做你该做的事!<br/>做你能做的事!<br/>做你想做的事!<br/>Do Things U SHOULD!<br/>Do Things U CAN!&nbsp;&nbsp;&nbsp;<br/>Do Things U WANT!&nbsp;&nbsp;<br/><br/></center>");
</script>

http://www.ugain.org