PDA

View Full Version : Flexi Slide Script



fcacoach
02-03-2006, 11:24 PM
http://www.dynamicdrive.com/dynamicindex14/flexislide.htm

I have been trying for days to get this script to be able to run more than 3 images, but I keep getting an undefined error when I add more images. Can you please tell me what to change so I can display more images.:cool:

jscheuer1
02-04-2006, 06:12 AM
Usually that is what will happen if you do not follow the example array syntax properly. This is the example array:


var variableslide=new Array()

//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

variableslide[0]=['ball.gif', '', '']
variableslide[1]=['spaceship.gif', 'http://www.space.com', 'Has aliens landed on earth? You decide.']
variableslide[2]=['cake.gif', '', '']

The next entry could look like so:


variableslide[3]=['another.gif', 'http://www.google.com', 'Search Google']

or just simply:


variableslide[3]=['pie.gif', '', '']

Each new entry must increment the bracketed number. Optional fields that are not used, must still have empty delimiting quotes around them. Any delimiter that is used inside a delimited string (example of bad coding):

'That's a problem'

must be escaped (how it should be done):

'This isn\'t a problem'

Oh, and any images that you put in the array must be available to the page.