中文(繁体)
<!--要完成此效果把如下程式碼加入<body>區域--> <script> var message="網頁製作教學下載downcodes.com 程式設計技術" var messagefont=new Array("Arial Black"," Verdana","Impact","Comic Sans MS") var messagecolor=new Array("33FF33","olive","888888","purple") var positionleft=20 var positiontop=10 </script> <script> var timer var marginright=0 var i_fadestrength=5 var i_message=0 var i_messagecolor=0 var i_messagefont=0 var step=1 var maxfontsize=110 var fontsizefactor=maxfontsize/100 var size=110 var 字型split(" ") function setmessage() { if (i_message>=message.length) {i_message=0} if (i_messagecolor>=messagecolor.length) {i_messagecolor=0} if (i_messagefont>message. 0} content="<nobr><font color="+messagecolor[i_messagecolor]+" face="+messagefont[i_messagefont]+">"+message[i_message]+"</font><nobr>" textbox.innerHTML =content i_message++ i_messagecolor++ i_messagefont++ timer=setTimeout("resizemessage()",500) } function resizemessage() { if (i_fadestrength<120) { textbox.film.alpha.opacity=M.t. textbox.style.fontSize=i_fadestrength*fontsizefactor document.all.textbox.style.posLeft=positionleft-(Math.floor(i_fadestrength/1.1*fontsizefactor)) document.all.textbox.style.posTopbox.style.posTopbox.topdocument.all.textbox.style.posTopbox.topdocument.all. style.width=bodywidth-document.all.textbox.style.posLeft-5 document.all.textbox.style.overflowX="hidden" document.all.textbox.style.visibility="visible" step+=1.5 i_fadestrength+=step timer =setTimeout("resizemessage()",50) } else { clearTimeout(timer) i_fadestrength=0; step=1; setmessage() } } if (document.all) { document.write("<DIV id='textbox' style='position:absolute;font-family:Verdana;filter:alpha(opacity=0);'></DIV>") document.write("<DIV style='position:relative;'>") } if (document.all) { bodywidth=document.body.clientWidth-5 setmessage() } </script>