Simple message slideshow news ticker using javascript

Click to rate this tutorial!
[Total: 12 Average: 3.8]

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&#91;curmsg&#93;"/></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&#91;0&#93;.value=messages&#91;curmsg&#93;
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>

Click to rate this tutorial!
[Total: 12 Average: 3.8]

Leave a Reply

Your email address will not be published.