View Full Version : help with slideshow

06-07-2008, 04:18 PM
1) Script Title: Swiss Army Image Slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/swissarmy/index.htm

3) Describe problem: I added the slide show to my home page. I added the photos in my images folder on the server, I uploaded the external .js file When I preview it through dreamweaver everything is working properly. When I acutally upload my index page to my server and look at the page, all you see is a space where the slide show should be. Not sure why its not showing up. Here is the link the page


can someone please help me figure out why its not working?

Here is the code I'm using

(more code here)

var slides2=[]; //SECOND SLIDESHOW
//configure the below images and descriptions to your own.
slides2[0] = ["images/Photo1.jpg", "JD High School"];
slides2[1] = ["images/Photo2.jpg", "DJ VIP Working Hard"];
slides2[2] = ["images/Photo3.jpg", "Kids Just Wanna Have Fun"];
slides2[3] = ["images/Photo4.jpg", "Lunch is Served"];
slides2[4] = ["images/Photo5.jpg", "Dance to the Music"];
slides2[5] = ["images/Photo6.jpg", "VIP Presents Wedding Shelf"];
slides2[6] = ["images/Photo7.jpg", "TouchStone Health Family"];
slides2[7] = ["images/Photo8.jpg", "Go Red Rams"];
slides2[8] = ["images/Photo9.jpg", "DJ VIP is About to Start"];
slides2[9] = ["images/Photo10.jpg", "Wow Needed a Rest"];
slides2[10] = ["images/Photo11.jpg", "Nice Lunch Set Up"];
slides2[11] = ["images/Photo12.jpg", "Shake Shake Shake"];
slides2[12] = ["images/Photo13.jpg", "DJ VIP Hello"];
slides2[13] = ["images/Photo14.jpg", "Stike a Pose"];
slides2[14] = ["images/Photo15.jpg", "VIP Presents Wedding Center Piece"];
slides2[15] = ["images/Photo16.jpg", "DJ VIP Hardest Working DJ Around"];
slides2[16] = ["images/Photo17.jpg", "TouchStone Health Luncheon"];
slides2[17] = ["images/Photo18.jpg", "DJ VIP Never Stops"];
//optional properties for these images:
slides2.no_controls=1; //will set a slide show with no controls
slides2.width=170; //use to set width of widest image if dimensions vary
slides2.height=140; //use to set height of tallest image if dimensions vary
slides2.border=2; //set border width for images
slides2.border_color='light green'; //set border color for images
//slides#.target will set a target for a slide group, will be overridden by slides#[#][3], if present
//slides#.specs will set new window specifications for a slide group, will be overridden by slides#[#][4], if present
//slides#.fadecolor will set fading images background color, defaults to white
//slides#.no_controls will set a slide show with no controls
//slides#.random will set a random slide sequence on each page load
//slides#.delay=3000 will set miliseconds delay between slides for a given show, may also be set in the call as the last parameter
//slides#.jumpto=1 will display added controls to jump to a particular image by its number
//slides#.no_added_linebreaks=1; use for no added line breaks in formatting of texts and controls

//use below to create a customized onclick event for linked images in a given show:
//slides#.onclick="window.open(this.href,this.target,'top=0, left=0, width='+screen.availWidth+', height='+screen.availHeight);return false;"


<script src="swissarmy.js" type="text/javascript">

* Swiss Army Image slide show script - John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code



<script type="text/javascript">
//Notes on Parameters: The only required parameter is the slides_array_name. If Width is used, so must Height.
//Interval is optional too. It is always last, either fourth after Width and Height or second after Slides_array_name.
//Usage: new inter_slide(Slides_array_name, Width, Height, Interval)
new inter_slide(slides2)

06-07-2008, 04:32 PM
/images/Photo1.jpg is not found.

Something's wrong with your pictures. :\

If you give it time, you see some of the images actually work.

06-07-2008, 04:43 PM
You need to make sure that the file extensions are all lower case on the server, or you can change the file paths in the slideshow script to point to the correct file. Keep in mind that file paths are case-sensitive, meaning that JPG and jpg are different files.

Hope this helps.

06-07-2008, 04:49 PM
I went and looked and it does not come up for me at all, are you using IE7? I also doubled checked my photos and its in there, but just in case I re-uploaded. Any other ideas?

06-07-2008, 05:08 PM
thank you it works!!!!!!! I can't believe each pic had a different ending. some were JPG others were jpg :)

06-07-2008, 07:02 PM
Can you please let me know if the number of pictures used in the book slideshow effects the speed?
I would like to add the maximum number of pictures allowed (or about 12) and I'm not sure if this will cause my page to be slow or if each photo is loaded as it is needed.
I would appreciate it if anyway can let me know. Thanks!

06-07-2008, 07:10 PM
Without looking at the full script, it looks as though each image is loaded when it is needed.

However, loading them all at once will only slow the initial load time, and if you only have say, 12 images on the page total, the increased time should be minimal. This does of course depend on the size of the images.

06-07-2008, 07:30 PM