Simple Image Gallery | JavaScriptSource

Simple Image Gallery

Jay Rumsey Dec 12, 2007

General

Use this script to display images, one at a time, on your Web page. Very easy to set-up, and includes captions.


information
The beautiful mountains

« Previous | Next »

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: simpleImageGallery.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(30 comments)

Thankyou

Jerremy Nov 4, 2014

You can check [a href="http://www.nova.edu/optometry/pharmacy/old/index.html"]the author's script listing[/a] or contact him directly (his e-mail is listed [a href="http://www.nova.edu/~rumsey"]on his site[/a]).

Lee Dec 2, 2008

Drew,[br /][br /]It's hard to say because I would need to look at how you have implemented the script. Your question is beyond the scope of these comments. You will need to post it over on [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]the JavaScript forum[/a]. Thanks!

Lee Nov 18, 2008

When the page first loads, the first image has the right subtitle, but if I click a button, they all say "undefined". How can I fix that?

Drew Nov 13, 2008

This works great, but would like to know how i could link each image to its own file url. First off, would i have to change that on the js. file or in the body or both? And what is the easiest way to do that?

Drew Nov 6, 2008