广西经贸职业技术学院论坛

标题: [推荐]打字机打彩色文字,自己试试看啊! [打印本页]

作者: saviour    时间: 2003-10-29 08:23
标题: [推荐]打字机打彩色文字,自己试试看啊!
<DIV class=ttl1 id=ttl0><SPAN class=ttl1></SPAN></DIV><br/>  <SCRIPT language=&quot;JavaScript&quot;><br/> <!--</p><p> var layers = document.layers, style = document.all, both = layers || style, idme=908601;<br/> if (layers) { layerRef = &#39;document.layers&#39;; styleRef = &#39;&#39;; } if (style) { layerRef = &#39;document.all&#39;; styleRef = &#39;.style&#39;; }</p><p> function writeOnText(obj, str) {<br/> if (layers) with (document[obj]) { document.open(); document.write(str); document.close(); }<br/> if (style) eval(obj+&#39;.innerHTML= str&#39;);<br/> }<br/> //以下是输出的内容,自己修改即可。<br/> var dispStr = new Array(<br/> &quot;<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>&quot;<br/> );</p><p> var overMe=0;</p><p> function helpor_net(str, idx, idObj, spObj, clr1, clr2, delay, plysnd) {<br/> var tmp0 = tmp1 = &#39;&#39;, skip = 0;<br/> if (both && idx <= str.length) {<br/> if (str.charAt(idx) == &#39;<&#39;) { while (str.charAt(idx) != &#39;>&#39;) idx++; idx++; }<br/> if (str.charAt(idx) == &#39;&&#39; && str.charAt(idx+1) != &#39; &#39;) { while (str.charAt(idx) != &#39;;&#39;) 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[&quot;LiveAudio&quot;][0].type==&quot;audio/basic&quot; && navigator.javaEnabled()) {<br/> document.embeds[0].stop();<br/> setTimeout(&quot;document.embeds[0].play(false)&quot;,100); }<br/> } else if (document.all) {<br/> ding.Stop();<br/> setTimeout(&quot;ding.Run()&quot;,100);<br/> }<br/> overMe=1;<br/> } else overMe=0;</p><p> writeOnText(idObj, &quot;<span class=&quot;+spObj+&quot;><font color=&#39;&quot;+clr1+&quot;&#39;>&quot;+tmp0+&quot;</font><font color=&#39;&quot;+clr2+&quot;&#39;>&quot;+tmp1+&quot;</font></span>&quot;);<br/> setTimeout(&quot;helpor_net(&#39;&quot;+str+&quot;&#39;, &quot;+idx+&quot;, &#39;&quot;+idObj+&quot;&#39;, &#39;&quot;+spObj+&quot;&#39;, &#39;&quot;+clr1+&quot;&#39;, &#39;&quot;+clr2+&quot;&#39;, &quot;+delay+&quot; ,&quot;+plysnd+&quot;)&quot;,delay);<br/> }<br/> }</p><p> function www_helpor_net() {<br/> helpor_net(dispStr[0], 0, &#39;ttl0&#39;, &#39;ttl1&#39;, &#39;#339933&#39;, &#39;#99FF33&#39;, 50, 0);<br/> }<br/> www_helpor_net();<br/> // --><br/> </SCRIPT><br/>




欢迎光临 广西经贸职业技术学院论坛 (http://gxjmbbs.com/) Powered by Discuz! X3.2