<div class="title_bot"><script>ec(2);</script></div> 一个可以文本显示的公告栏,可以在多处使用,绝对不可错过! <br>脚本说明: <br>第一步:把如下代码加入区域中 <br><script language="JavaScript"> <br /><!-- Activate Cloaking Device <br />var i = 0; <br />// used to cycle thru messages <br />var TextNumber = -1; <br />// array of messages <br />var TextInput = new Object(); <br />// used to load manipulate message <br />var HelpText=""; <br />// used to load message <br />var Text = ""; <br />// length of timeout (smaller is faster) <br />var Speed=50; <br />// used to display message number <br />var message=0; <br />// used to position text in ver 2.0 <br />var addPadding="rn"; <br />// Each element of TextInput represents a single message. <br />TextInput[0] = "今天注意了有新的任务布置"; <br />TextInput[1] = "欢迎你的光临!本站为你提供大量javascript下载"; <br />TextInput[2] = "重点介绍Javascript"; <br />TextInput[3] = "与制作网页特效密切相关的技术"; <br />TextInput[4] = "本站同时有影音空间等栏目"; <br />TextInput[5] = "还有新闻及健康方面的资料"; <br />TextInput[6] = "还有宽带网方面的大量技术文章"; <br />TextInput[7] = "本站网址:http://www.njcatv.net"; <br />TotalTextInput = 7; // (0, 1, 2, 3, 4, 5, 6, 7) <br />// Positioning and speed vary between versions. <br />var Version = navigator.appVersion; <br />if (Version.substring(0, 1)==3) <br />{ <br />Speed=200; <br />addPadding=""; <br />} <br />for (var addPause = 0; addPause <= TotalTextInput; addPause ) <br />{TextInput[addPause]=addPadding TextInput[addPause];} <br />var TimerId <br />var TimerSet=false; <br />// Called by >>> button (display next message) . <br />function nextMessage() <br />{ <br />if (!TimerSet) <br />{ <br />TimerSet=true; <br />clearTimeout (TimerId); <br />if (TextNumber>=TotalTextInput) <br />{ <br />alert("This is the end of the list!"); <br />TimerSet=false; <br />} <br /></script>