| 文本自动向上循环滚动 说明: 文本自动向上循环滚动,鼠标放到上面还会暂时停下来。
 代码:
 <DIV class=ttl1 id=ttl0><SPAN class=ttl1></SPAN></DIV>
 <SCRIPT language="JavaScript">
 <!--
 var layers = document.layers, style = document.all, both = layers || style, idme=908601;if (layers) { layerRef = 'document.layers'; styleRef = ''; } if (style) { layerRef = 'document.all'; styleRef = '.style'; }
 function writeOnText(obj, str) {if (layers) with (document[obj]) { document.open(); document.write(str); document.close(); }
 if (style) eval(obj+'.innerHTML= str');
 }
 //以下是输出的内容,自己修改即可。
 var dispStr = new Array(
 "<font color=red size=3>欢迎光临...</font>"
 );
 var overMe=0; function helpor_net(str, idx, idObj, spObj, clr1, clr2, delay, plysnd) {var tmp0 = tmp1 = '', skip = 0;
 if (both && idx <= str.length) {
 if (str.charAt(idx) == '<') { while (str.charAt(idx) != '>') idx++; idx++; }
 if (str.charAt(idx) == '&' && str.charAt(idx+1) != ' ') { while (str.charAt(idx) != ';') idx++; idx++; }
 tmp0 = str.slice(0,idx);
 tmp1 = str.charAt(idx++);
 if (overMe==0 && plysnd==1) {if (navigator.plugins[0]) {
 if (navigator.plugins["LiveAudio"][0].type=="audio/basic" && navigator.javaEnabled()) {
 document.embeds[0].stop();
 setTimeout("document.embeds[0].play(false)",100); }
 } else if (document.all) {
 ding.Stop();
 setTimeout("ding.Run()",100);
 }
 overMe=1;
 } else overMe=0;
 writeOnText(idObj, "<span class="+spObj+"><font color='"+clr1+"'>"+tmp0+"</font><font color='"+clr2+"'>"+tmp1+"</font></span>");setTimeout("helpor_net('"+str+"', "+idx+", '"+idObj+"', '"+spObj+"', '"+clr1+"', '"+clr2+"', "+delay+" ,"+plysnd+")",delay);
 }
 }
 function www_helpor_net() {(中华企业文化网)helpor_net(dispStr[0], 0, 'ttl0', 'ttl1', '#339933', '#99FF33', 50, 0);
 }
 www_helpor_net();
 // -->
 </SCRIPT>
 
 |