Skip to content

模仿QQ和MSN消息提示的效果

<script type="text/javascript">// <![CDATA[

var oPopup = window.cr&#101;atePopup();
var popTop=50;
function popmsg(msgstr){
var winstr="

<table style=\"border: 1 solid #cccccc\" width=\"241\" height=\"130\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"skin/s1/top_02.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&#038;&popTop<1720){
oPopup.show(screen.width-250,screen.height,241,1720-popTop);
}else if(popTop>1500&#038;&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(" <img border=\"0\" src=\"http://www.shuiyao.net/blog/skin/logo.gif\" width=\"88\" height=\"31\">在这里填写你的提示信息说明。比如“欢迎水妖世界,多多支持等)");
// ]]></script>

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注