中文(繁体)
<!-- 完整的html檔案如下: --> <!-- http://www.downcodes.com --> <!-- bbs http://www.downcodes.com/bbs--> <head ><style> <!-- #tickertape{ position:relative; layer-background-color:black; width:400; height:12; ; font-family: "宋體"; font-size: 9pt} #subtickertape{ background -color:black; position:absolute; border: 1px solid black; width:400; height:12; ; font-family: "宋體"; font-size: 9pt } .subtickertapefont{ font:bold 9pt "宋體"; textpt } .subtickertapefont{ font:bold 9pt "宋體"; textpt -decoration:none; color:white; } .subtickertapefont a{ color:white; text-decoration:none; ; font-family: "宋體"; font-size: 9pt} --> </style> </head> <body><div id="tickertape"> <div id="subtickertape" class="subtickertapefont">初始化...</div></div> <script language="JavaScript1.2"> //預設速度4.5秒,自己修改速度快慢。 var speed=4500 var news=new Array() news[0]="<a href='index1.htm'>曾經有一份真摯的愛情擺在我面前</a>" news[1]="<a href='index2.htm'>但是我沒有真惜....</a>" news[2]="<a href='index3.htm'>等到失去的時候才後莫及</a> " news[3]="<a href='index4.htm'>如果上天能夠再給我一次機會的話</a>" news[4]="<a href='index5.htm'>我會對哪個女孩說</a>" news[5]="<a href='index6.htm'>--我愛你--</a>" news[6]="<a href='index7. htm'>如果非要在這份愛加上一個期限的話</a>" news[7]="<a href='index7.htm'>我希望是--一萬年</a>" / /顯示的資訊內容可以任意按照格式新增。 i=0 if (document.all) tickerobject=document.all.subtickertape.style else tickerobject=document.tickertape.document function regenerate(){ window.location.reload() } function regene2(){ ifrate2(){layers). setTimeout("window.onresize=regenerate",450) } function update(){ BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10); if (document.layers){ document.tickerta.document. document.write('<span class="subtickertapefont">'+news[i]+'</span>') document.tickertape.document.subtickertape.document.close() } else document.all.subtickertape.innerHTML=ckertape.innerHTML= news[i] if (i<news.length-1) i++ else i=0 setTimeout("update()",speed) } function BgFade(red1, grn1, blu1, red2, grn2, blu2, steps) { sred = red1; sgrn = grn1; sblu = blu1; ered = red2; egrn = grn2; eblu = blu2; inc = steps; step = 0; RunFader(); } function RunFader() { var epct = step/inc; 1 - epct; if (document.layers) tickerobject.bgColor = Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor( sblu * spct + eblu * epct); else tickerobject.backgroundColor= Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor( sblu * spct + eblu * epct); if ( step < inc ) { setTimeout('RunFader()',50); } step++; } </script> </body> <body><body bgcolor="#000000" onload="if (document.all||document.layers) {regenerate2();update()}">