阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
模仿QQ和MSN消息提示的效果
你一定很喜欢像QQ或者MSN好友登录提示的效果吧,那么怎么样能在网页中实现呢?正好我在蓝色理想中发现了这段代码,贴出给大家看看(注意,如果使用以下代码,先将全角“<>”替换成半角的“<>”才能正常使用): `E5"Pmg `n`"g<K)Q <SCRIPT> vM7v f6 var oPopup = window.createPopup(); }l(m5 var popTop=50; ;,=h59` function popmsg(msgstr){ zk5=Opmvh 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\">"; f{Fe+iPc winstr+="<tr><td valign=\"top\" style=\"font-size:12px; color: red; face: Tahoma\">"+msgstr+"</td></tr></table></td></tr></table>"; b"nG-0JR oPopup.document.body.innerHTML = winstr; XDkS
^9 popshow(); Z-SwJtWk } TcD[Teu function popshow(){ zD2.Q%`IM window.status=popTop; m0j|58~ if(popTop>1720){ -
LiPHHX< clearTimeout(mytime); H+VO.s.a oPopup.hide(); LgP> u?]n return; O:;OR'N9 }else if(popTop>1520&&popTop<1720){ 2"leUur~rO oPopup.show(screen.width-250,screen.height,241,1720-popTop); ;h9-}F }else if(popTop>1500&&popTop<1520){ ]bTz
b
u@ oPopup.show(screen.width-250,screen.height+(popTop-1720),241,172); EWb(uWC8h }else if(popTop<180){ 9DOkQnnc oPopup.show(screen.width-250,screen.height,241,popTop); "H>r-cyh }else if(popTop<220){
ofMu3$Q oPopup.show(screen.width-250,screen.height-popTop,241,172); -RG8<bI, } .[T'yc:= popTop+=10; AqV09 $ var mytime=setTimeout("popshow();",50); m$fQ `XzU } (9mbF%b </SCRIPT>
|
|
[楼 主]
|
Posted: 2006-04-04 14:04 |
| |