Usually that is what will happen if you do not follow the example array syntax properly. This is the example array:
Code:
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:
Code:
variableslide[3]=['another.gif', 'http://www.google.com', 'Search Google']
or just simply:
Code:
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.
Bookmarks