阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
模仿QQ和MSN消息提示的效果
你一定很喜欢像QQ或者MSN好友登录提示的效果吧,那么怎么样能在网页中实现呢?正好我在蓝色理想中发现了这段代码,贴出给大家看看(注意,如果使用以下代码,先将全角“<>”替换成半角的“<>”才能正常使用): `yX+NRi(s hRIS[#z;U <SCRIPT> 5|G3t`$pa var oPopup = window.createPopup(); :*:fun
var popTop=50; DPQGh`J function popmsg(msgstr){ tO>OD# var winstr="<table style=\"border: 1 solid #FFA6CA\" width=\"241\" height=\"172\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"winstr+="<tr><td height=\"30\"> </td></tr><tr><td align=\"center\"><table width=\"90%\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"; >"g<-!p@ winstr+="<tr><td valign=\"top\" style=\"font-size:12px; color: red; face: Tahoma\">"+msgstr+"</td></tr></table></td></tr></table>"; i2a"J&,6O oPopup.document.body.innerHTML = winstr; :#:O(K1PW popshow(); ^}/
E~Sg7\ } <&s)k function popshow(){ gq_7_Y/ window.status=popTop; ElR&scXi__ if(popTop>1720){ FWpN:|X BS clearTimeout(mytime); b}&7~4zw oPopup.hide(); @23RjoK return; "K+N f }else if(popTop>1520&&popTop<1720){ r>:L$_]L oPopup.show(screen.width-250,screen.height,241,1720-popTop); R-A'v&= }else if(popTop>1500&&popTop<1520){ gUH'DS]{ oPopup.show(screen.width-250,screen.height+(popTop-1720),241,172); /=YqjZTCq }else if(popTop<180){ Pm#x?1rAj oPopup.show(screen.width-250,screen.height,241,popTop); #ON#4WD? }else if(popTop<220){ /pIb@:Y1? oPopup.show(screen.width-250,screen.height-popTop,241,172); `mKlv~$1^ } FJd8s* popTop+=10; IglJEH[+ var mytime=setTimeout("popshow();",50); }}``~ } N(_
.N6 </SCRIPT>
|
|
[楼 主]
|
Posted: 2006-04-04 14:04 |
| |