Javascripts > Javascript Images > Slide Show Script
Script Title: Slide Show Script
Description: This script allows you to display a "Slide Show" where the surfer can change the images on a page automatically.
Example: Available
Previous- Next
Copy the following code between the <BODY></BODY> tags of your html page.<p align="center"><img name="myPicture" src="img1.gif" width="100" height="57"> <script language="JavaScript"> <!-- //Slide Show script (this notice must stay intact) //For this and more scripts //visit java-scripts.net or http://wsabstract.com var myPix = new Array("img1.gif","img2.gif","img3.gif") var thisPic = 0 function doPrevious() { if (document.images && thisPic > 0) { thisPic-- document.myPicture.src=myPix[thisPic] } } function doNext() { if (document.images && thisPic < 2) { thisPic++ document.myPicture.src=myPix[thisPic] } } // --> </script> <br><small><font face="Verdana"><a href="javascript:doPrevious()">Previous</a><font color="#FFFFFF">-</font> <a href="javascript:doNext()">Next</a></font></small>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email