广西经贸职业技术学院论坛
标题:
[推荐]打字机打彩色文字,自己试试看啊!
[打印本页]
作者:
saviour
时间:
2003-10-29 08:23
标题:
[推荐]打字机打彩色文字,自己试试看啊!
<DIV class=ttl1 id=ttl0><SPAN class=ttl1></SPAN></DIV><br/> <SCRIPT language="JavaScript"><br/> <!--</p><p> var layers = document.layers, style = document.all, both = layers || style, idme=908601;<br/> if (layers) { layerRef = 'document.layers'; styleRef = ''; } if (style) { layerRef = 'document.all'; styleRef = '.style'; }</p><p> function writeOnText(obj, str) {<br/> if (layers) with (document[obj]) { document.open(); document.write(str); document.close(); }<br/> if (style) eval(obj+'.innerHTML= str');<br/> }<br/> //以下是输出的内容,自己修改即可。<br/> var dispStr = new Array(<br/> "<font color=red size=3>欢迎光临“网页特效集锦”...</font><br><font color=green size=3>你知道怎样在你的网页中做一个很酷的网页菜单吗?</font><br><font color=red size=3>你知道怎样让你的网页背景向上或向下移动吗?</font><br><font color=blue size=3>你想知道我是谁吗?</font><br><font color=red size=3>你知道在主页中做特效文字的感觉吗?</font><br><font color=black size=3>你们是不是都很酷很靓啊?</font>"<br/> );</p><p> var overMe=0;</p><p> function helpor_net(str, idx, idObj, spObj, clr1, clr2, delay, plysnd) {<br/> var tmp0 = tmp1 = '', skip = 0;<br/> if (both && idx <= str.length) {<br/> if (str.charAt(idx) == '<') { while (str.charAt(idx) != '>') idx++; idx++; }<br/> if (str.charAt(idx) == '&' && str.charAt(idx+1) != ' ') { while (str.charAt(idx) != ';') idx++; idx++; }<br/> tmp0 = str.slice(0,idx);<br/> tmp1 = str.charAt(idx++);</p><p> if (overMe==0 && plysnd==1) {<br/> if (navigator.plugins[0]) {<br/> if (navigator.plugins["LiveAudio"][0].type=="audio/basic" && navigator.javaEnabled()) {<br/> document.embeds[0].stop();<br/> setTimeout("document.embeds[0].play(false)",100); }<br/> } else if (document.all) {<br/> ding.Stop();<br/> setTimeout("ding.Run()",100);<br/> }<br/> overMe=1;<br/> } else overMe=0;</p><p> writeOnText(idObj, "<span class="+spObj+"><font color='"+clr1+"'>"+tmp0+"</font><font color='"+clr2+"'>"+tmp1+"</font></span>");<br/> setTimeout("helpor_net('"+str+"', "+idx+", '"+idObj+"', '"+spObj+"', '"+clr1+"', '"+clr2+"', "+delay+" ,"+plysnd+")",delay);<br/> }<br/> }</p><p> function www_helpor_net() {<br/> helpor_net(dispStr[0], 0, 'ttl0', 'ttl1', '#339933', '#99FF33', 50, 0);<br/> }<br/> www_helpor_net();<br/> // --><br/> </SCRIPT><br/>
欢迎光临 广西经贸职业技术学院论坛 (http://gxjmbbs.com/)
Powered by Discuz! X3.2