/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><form name="slideshow"><div align="center"><center><p><b>What's On Update</b><br><textarea rows="5" name="S1" cols="30" wrap="virtual"></textarea><br> <input type="button" value="Take me there!" name="B1" onClick="window.location=messagelinks[curmsg]"></p> </center></div> </form> </td> </tr> </table> <script> /* Message Slideshow By Website Abstraction (www.wsabstract.com) and Java-scripts.net (www.java-scripts.net) Credits must stay intact for use */ var curmsg=-1 var messages=new Array() messages[0]="Hundreds of great free backgrounds for the taking!" messages[1]="Comprehensive DHTML scripts and components for your site!" messages[2]="The JavaScript Technology center" //add more messages as desired var messagelinks=new Array() messagelinks[0]="http://www.free-backgrounds.com" messagelinks[1]="http://www.dynamicdrive.com" messagelinks[2]="http://www.wsabstract.com" //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>