Notes
A. External JS File
You can choose to place the script in the head of your document or in an external .js file. Make sure that when inserting the head HTML, your source is the name of your .js file.
B. Adding Images
Add as many images as you want. Type in the actual source - folder name (if it is in a folder) and extension.
// Create an Array of Image Locations
C. Configure Captions
var myImg= new Array()
myImg[0]= "images/image_1.gif";
myImg[1]= "personal/holiday.gif";
myImg[2]= "nature/sky.jpg";
myImg[3]= "nature/water.png";
Your caption arrays must correspond to the images.
// Create an Array of Captions
var myCap= new Array()
myCap[0]= "This is an extremely long, ... caption here.";
myCap[1]= "This is caption 2 for Image 2.";
myCap[2]= "This is caption 3 for Image 3.";
myCap[3]= "This is caption 4 for Image 4.";
To remove captions, replace all myCap[i] you see in the script to ''.Source
External Javascript File [NPIG2.js] . Head . Body
I am very interested to know who uses my scripts, for statistic purposes.
If you have the time, I would really appreciate if you could kindly fill in this form.
Please fill in all the fields so that the data will be saved. Thank you.
If you have the time, I would really appreciate if you could kindly fill in this form.
Please fill in all the fields so that the data will be saved. Thank you.
| Name: | |
| URL: | |
| Rating: | |
Oldest to Newest
Comments
Name: Email: Website: Comment: By submitting your comments, you agree to the terms and conditions.
