JavaScript Image Gallery Code


JavaScript code that allows the user to view the image in the gallery. It can add an unlimited number of pictures as you like. It has features including the previous page, next page, first page, last page, and random selection. This script is very suitable for display of your favorite pictures on the site to your friends. Use it to display product images on the site which is also a good choice.

Copy and paste the code into your web page file in the head tag and body tag.

Script Demo:




Demo


JavaScript Code:


Insert this code into <head> tags


Insert this code into <body> tags


Instruction:


Important:

  1. Add images[x] = "IMAGEx" with number for your image, follow the consecutive numbers, 2, 3, 4, 5, 6, 7, 8...
  2. Change "6" with your numbers of image or last image(if your last number is you sum of image).
  • Replace <body> with <body onLoad="gallery();">
  • Remember to change "YOUR FIRST IMAGE" url, it will display to your visitor first.
Webmaster » Web Programming » JavaScript » Image Effects » Image Gallery Code


 Related Links:

Home | Sitemap | Bookmark This Page
Sponsored Links