Many people have created image slideshows using HTML, but they must make many HTML documents to do so. This script takes all the hassle out of making slideshows. It is small, easy to configure, and you won't even have to leave your HTML document. This is great if you want a picture album on the web, a display of your services, and much more.
The source..


<form>
<center>
<script language="Javascript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var current = 0;

function initArray() {

this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
  }
}

var picz = new initArray(
"0.gif",
"1.gif",
"2.gif",
"3.gif",
"4.gif",
"5.gif",
"6.gif",
"7.gif",
"8.gif",
"9.gif"
);

  document.write('<img name="jscriptimg" src="'+picz[0]+'">');

function checkIt(val) {

var goodnum = current+val;

if (goodnum < 0) alert("You can't go any further back!");
else if (goodnum > picz.length-1) alert("You can't go any further forward!");
else document.jscriptimg.src = picz[goodnum];

current = goodnum;
}

//-->
</script>
<br><input type="button" value="Back" onclick="checkIt(-1)"> <input type="button" value="Forward" onclick="checkIt(1)">
</center>
</form>

Text of this color indicates the URL of the images you want to display in your slideshow. Each image is stated

"image_url.gif",

Just add and delete code in that manner to add or take away pre-loaded images. You aren't required to use GIF files, you can use any file type you want. Just change the extension.