Message Slideshow

A form box message slideshow rotates among any number of messages. Each message is associated with a unique URL, and clicking the button will take the surfer to a different URL, depending on when the surfer clicks it.


What's On Update


<SCRIPT>

var curmsg = -1;

var messages = new Array();

messages[0] = "Check out CNN, one of the premier news site on the net, covering national international, sports, and wheather news!";
messages[1] = "Visit Wired.com for the latest happenings in the technology sector.";
messages[2] = "Go to download.com to download the latest shareware and demo programs!";

var msgLinks = new Array();

msgLinks[0] = "http://www.cnn.com";
msgLinks[1] = "http://www.wired.com";
msgLinks[2] = "http://www.download.com";

function slidemessage() {
     if (
curmsg < messages.length - 1) curmsg++;
     else
curmsg = 0;

     document.slideshow[0].value = messages[curmsg];

     setTimeout("slidemessage()", 4500);
}

</SCRIPT>

<BODY onLoad="slidemessage()">

<FORM NAME="slideshow">
     What's On Update
     <
TEXTAREA></TEXTAREA>
     <
INPUT TYPE="button" VALUE="Take me there!" onClick="location.href=msgLinks[curmsg]">
</
FORM>