images: Slide Show

[Javascript]

The images below are generated by a Javascript within this Web document. The script controls the images to be displayed, their order, and how long they will stay on-screen.

Slide Show

The Code:

The <head> Tag:
Copy the following code and paste it within the <head></head> tags of your document. You must then type in the names of your own graphics following the pattern established in the example.


The <body> Tag
Insert the following into the opening
<body> tag: onLoad="startPix()" so that you have this:

<body onLoad="startPix()">

Place the Image
Insert the first image of the slide show into your document. Include the name= attribute with the value of ChangingPix. Make sure you use the capital C and P.

<img name="ChangingPix" src="01.jpg" width="120" height="90" alt="Slide Show">


Images to Work With

Smiley 1 Smiley 2 Smiley 3 Smiley 4
Smiley 5 Smiley 6 Smiley 7 Smiley 8
Smiley 9 Smiley 10 Smiley 11 Smiley 12


This should be a fairly simple Javascript to implement. Just make sure of a few things:

  1. Place all of the graphics within the same directory as the Web page that contains the script.
  2. Be sure that you have made the necessary, and correct, changes to the script.

If either of these are not done correctly, the script will not function.

 

Return to Images menu.