PDA

View Full Version : Swiss Army slide show "no_controls" problem



ndespota
08-26-2009, 06:48 PM
1) Swiss Army Image slide show:

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

3) Describe problem: Want to eliminate controls on slide show type 1 with "slides#.no_controls" but the controls remain. I assume that with slide show 1 I simply removed the hash mark in the example, and inserted "slides.no_controls" after the image variables in the document head. No go.
Here's the example:
http://www.homefrontfestival.com/hometemplate2.html

Here's the code:
<script type="text/javascript">
(...)
var slides=[]; //FIRST SLIDESHOW
//configure the below images and descriptions to your own.
slides[0] = ["images/09/home/acts/blue.gif", "The Blue Box<br />This is line two"];
slides[1] = ["images/09/home/acts/gold.gif", "A Gold Rectangle<br />This is line two"];
slides[2] = ["images/09/home/acts/green.gif", "Green with Envy<br />This is line two"];
slides[3] = ["images/09/home/acts/purple.gif", "Purple Shape<br />This is line two"];
slides[4] = ["images/09/home/acts/red.gif", "The Red Box<br />This is line two"];

slides.no_controls;

</script>
=======
Thanks for helping an obvious newbie to javascript.

ndespota
09-02-2009, 04:03 PM
Checking forums I found that no_control=1 deletes the controls. I didn't see this stated in the documentation.

Thanks all.