代码:
<html> <head> <title>网页特效代码网页特效演示,公告栏渐变图形</title> <meta content="text/html; charset=gb2312" http-equiv="Content-Type"> <style type="TEXT/CSS">.cool { BORDER-BOTTOM-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-WIDTH: 1px; CURSOR: hand; FONT-SIZE: 9pt } A { TEXT-DECORATION: none } A:hover { COLOR: #ff9900; TEXT-DECORATION: underline } TD { FONT-SIZE: 9pt; LINE-HEIGHT: 13pt } TH { FONT-SIZE: 9pt; LINE-HEIGHT: 13pt } BODY { FONT-SIZE: 9pt; LINE-HEIGHT: 13pt } .f1 { FONT-SIZE: 14pt } </style> <script language="JavaScript"> m = new Array() m[0] = "这个例子还有很多等着你去修改!" m[1] = "感觉怎样!不错吧!" m[2] = "可以把这个当成公告栏也不错喔!" m[3]="<a href='http://linkweb.cn/js'>『』</a>欢迎你的光临!" m[4]="本站域名:http://linkweb.cn/js" m[5] = "有空要到我的主页看看!" m[6] = "如有问题!欢迎留言!"
bagcolor = new Array() bagcolor[0] = "#CCCCCC" bagcolor[1] = "#FFFF66" bagcolor[2] = "#CCFFFF" bagcolor[3] = "#AAEEFF" bagcolor[4] = "#CCFF88" bagcolor[5] = "#FF9933" bagcolor[6] = "#99AAFF" bagcolor[7] = "#6699FF" var i=0;
function Ran(R) { return Math.floor((R+1)*Math.random()) }
function play_rt() { rt1.style.filter="revealTrans(Duration=1.5,Transition=" + Ran(22) + ")"; rt1.filters.revealTrans.apply(); rt1.style.background=bagcolor[Ran(7)]; rt1.innerHTML=m[Ran(6)]; rt1.filters.revealTrans.play(); timer = setTimeout("play_rt()",3000) } </script>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR"> </head>
<body bgColor="#ffffff" leftMargin="0" link="#6699FF" onload="play_rt()" topMargin="0" vLink="#6699CC"> <center> <table cellPadding="0" cellSpacing="0" width="283"> <TBODY> <tr vAlign="top"> <td width="352"></td> </tr> <tr> <td vAlign="top" width="352"> <table cellPadding="0" cellSpacing="0" width="29"> <TBODY> <tr> <td height="1" vAlign="top" width="3"></td> <td vAlign="top" width="11"></td> <td height="22" vAlign="top" width="487"> <table width="299" height="184"> <TBODY> <tr align="middle"> </tr> <tr> <td height="102" colspan="2" width="327"><table border="6" height="87" width="327" bordercolorlight="#FF00FF" bordercolordark="#FF0000"> <TBODY> <tr align="middle"> <td height="82" id="rt1"> <p align="center"></td> </tr> </TBODY> </table>
</td> </tr> </TBODY> </table> </td> </tr> </TBODY> </table> </td> </tr> <tr align="right"> <td width="352"> </td> </tr> </table> </center> </body> </html> |