Pages

Friday, May 20, 2011

Site Update Javascript with Slideshow Effect


Tell your visitors what's new or give updates to your site with this great space saving message slideshow javascript. A description of each new or updated page is delivered within the text area for a given amount of time.
Could be used not only for website updates but many other uses, such as affiliate links, link rotation, the possibilities are endless.
The update message script provides a button so that visitors can visit the link to each message. Very easy to install and configure. Just add your messages and links. Can hold countless number of messages.
Installation
Copy and paste the code below between the <body> and </body> tags of your html document where you want the text box to appear on your webpage. Simply replace the messages and links with your own. All instructions for messages and links are contained within the script
<table
border="0" cellspacing="0" cellpadding="0"> <tr>
<td width="100%"> <form name="slideshow"> <div
align="center"> <center> <p><b><font color="#0000CC">What's
New at Hypergurl!</font></b><br> <textarea rows="5"
name="S1" cols="40" wrap="virtual"></textarea>
<br> <input type="button" value="Click Here!" name="B1"
onClick="window.location=messagelinks[curmsg]"> </p> </center>
</div> </form> </td> </tr> </table> </div>
<div align="center">
<script>
 var curmsg=-1 var messages=new Array()
messages[0]="Message 1 here! very eye catching. Grab the code now!"
messages[1]="Message 2 here! Read our article on link popularity!" messages[2]="message
3 here! Disable right click and protect your source code!" //add more messages
as desired var messagelinks=new Array() messagelinks[0]="http://www.yoursite.com"
messagelinks[1]="http://www.yoursite.com" messagelinks[2]="http://www.yoursite.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> </div>
Enjoy!

No comments:

Post a Comment