Contents of scheduled changes!

Source: Internet
Author: User

<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> untitled document </title>
</Head>

<Body>
<Script language = "javascript1.2">

// Configure tickercontents [] to set the messges you wish be displayed (html codes accepted) // set the content display
VaR tickercontents = new array ()
Tickercontents [0] = 'see what \'s new at dynamic drive. <a href = ".. /.. /.. /dynamicdrive.com/new.htm "> [Read More] </a>'
Tickercontents [1] = 'browse the most popular scripts on dynamic drive <a href = ".../dynamicdrive.com/hot.htm"> [Read More] </a>'
Tickercontents [2] = 'link back to dynamic drive! <A href = ".../dynamicdrive.com/link.htm"> [Read More] </a>'

// Configure the below 2 variables to set the width/background color of the ticker // set the color and length
VaR tickerwidth = '20140901'
VaR tickerbgcolor = 'lightblue'

// Configure the below variable to determine the delay between ticking of messages (in miliseconds // set the delay time
VaR tickdelay= 3000

/// Do not edit pass this line ////////////////

VaR currentmessage = 0

Function changetickercontent (){
If (document. layers ){
Document.tickernsmain.document.tickernssub.doc ument. Write (tickercontents [currentmessage])
Document.tickernsmain.document.tickernssub.doc ument. Close ()
}
Else if (document. All)
Tickerie. innerhtml = tickercontents [currentmessage]

If (currentmessage = tickercontents. Length-1) currentmessage = 0
Else currentmessage ++
SetTimeout ("changetickercontent ()", tickdelay)
}

Function start_ticking (){
If (document. layers)
Document. tickernsmain. Visibility = "show"
Changetickercontent ()
}

If (document. All)
Document. Write ('<Div id = "tickerie" style = "width:' + tickerwidth + '; Background-color:' + tickerbgcolor + '"> </div> ')
Window. onload = start_ticking
</SCRIPT>
<Ilayer id = "tickernsmain" width = & {tickerwidth}; bgcolor = & {tickerbgcolor}; visibility = hide> <layer id = "tickernssub" width = & {tickerwidth }; left = 0 Top = 0> </layer> </ilayer>
</Body>
</Html>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.