A text can be displayed in the bulletin board, can be used in many places, absolutely not to miss!
Script Description:
The first step: Add the following code to the <script language= "JavaScript" >
<!--Activate cloaking Device
var i = 0;
Used to cycle thru messages
var textnumber =-1;
Array of messages
var TextInput = new Object ();
Used to load manipulate message
var helptext= "";
Used to load message
var Text = "";
Length of timeout (smaller is faster)
var speed=50;
Used to display message number
var message=0;
Used to position text in ver 2.0
var addpadding= "RN";
Each element of TextInput represents a single.
Textinput[0] = "Today noticed a new task arrangement";
TEXTINPUT[1] = "Welcome to your visit!" This site for you to provide a large number of JavaScript download ";
TEXTINPUT[2] = "focus on JavaScript";
TEXTINPUT[3] = "technology closely related to making web effects";
TEXTINPUT[4] = "The site also has audio-visual space and other columns";
TEXTINPUT[5] = "There is also information on the news and health";
TEXTINPUT[6] = "There is also a large number of broadband network technology articles";
TEXTINPUT[7] = "site: http://www.njcatv.net";
Totaltextinput = 7; (0, 1, 2, 3, 4, 5, 6, 7)
Positioning and speed vary between versions.
var Version = navigator.appversion;
if (version.substring (0, 1) ==3)
{
speed=200;
Addpadding= "";
}
for (var addpause = 0; addpause <= totaltextinput; addpause)
{textinput[addpause]=addpadding textinput[addpause];}
var Timerid
var Timerset=false;
Called by >>> button (display next message).
function Nextmessage ()
{
if (! Timerset)
{
Timerset=true;
Cleartimeout (Timerid);
if (textnumber>=totaltextinput)
{
Alert ("This is the list!");
Timerset=false;
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.