Simple message slideshow news ticker using javascript

This Tutorial Has Been Viewed 4,318 Times.

A simple message ticker in which each message is associated with a unique URL, and clicking the button will take the surfer to a different URL.

<form name="slideshow"><div align="center"><center><p><b>
Update</b><br /><textarea rows="5" name="S1"
      cols="30" wrap="virtual" readonly style="border-style: solid;border-color: red green 

blue black;border-width: thin"></textarea><br />
      <input type="button" value="GoTo That Link" name="B1" 

onClick="window.location=messagelinks[curmsg]"/></p>
      </center></div>
    </form>

<script type="text/javascript">

var curmsg=-1
var messages=new Array()
messages[0]="All Kind Of PHP related Tutorials!"
messages[1]="All Kind Of JavaScript related Tutorials!"
messages[2]="All Kind Of MySql related Tutorials!!"
//add more messages as desired

var messagelinks=new Array()
messagelinks[0]="http://mistonline.in/wp/technology/php/"
messagelinks[1]="http://mistonline.in/wp/technology/javascript/"
messagelinks[2]="http://mistonline.in/wp/technology/mysql/"
//add more links as indicated by the number of messages 

function slidemessage(){
if (curmsg<messages .length-1)
curmsg++
else
curmsg=0
document.slideshow[0].value=messages[curmsg]
setTimeout("slidemessage()",4500)
}
slidemessage()
</script>

<p align="center"><font face="arial" size="-2">This free script provided by</font><br />
<font face="arial, helvetica" size="-2"><a href="http://mistonline.in/wp/technology/javascript/">JavaScript
Tutorials</a></font></p>


VN:F [1.9.13_1145]
Rating: 6.3/10 (7 votes cast)
VN:F [1.9.13_1145]
Rating: -1 (from 1 vote)

Simple message slideshow news ticker using javascript, 6.3 out of 10 based on 7 ratings

Incoming search terms:





You will also be interested in ,

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks
More in JavaScripts, scripts (80 of 144 articles)


How would you differentiate if the call save() was to save a blogs or save comments? The solution was to ...