Simple Picture Changer | JavaScriptSource

Simple Picture Changer

Kenneth Pitman Apr 27, 2009

"You can change the number of pictures by adding or deleting the lines in the 'function preload()' and by changing the 'vpic' to the new number of pictures. The image files need to be in the same folder as your web page and the image names substituted with the names of your images. Please retain the numbers as attached to the image names and all the names need to be the same except for the numbers. 0 - the number of pictures you wish to show with 0 (zero) being the first. You can change the display time by changing the 6000 and 3000 numbers. 1000 = 1 second. The image can be moved anywhere around the screen in the usual manner. You can change the size of the picture in the 'body' 'img' line but all pictures will be displayed at this same size too. "

Leave a Response

(2 comments)

I'm trying to build a website for the first time and this script looks like the exact thing I need for an image on my homepage. I tried to run the image but it doesn't find the page. Is it possible to send this to me with some advice on how to work with it?

Rebecca Skeels Sep 25, 2012

New to scripting,was looking for a simple charnger type javascript

Bob Jul 25, 2012