PDA

View Full Version : RE:http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm



morleymc
09-29-2005, 01:36 PM
http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

How do I alter this script to accept several new arrays? (ie:20)

I realize I have to create the new array messages for each but beyond that I'm getting the error message

Line 87
Error: 'messages[...].0' is null or not an object

Thanks in advance for any help.

jscheuer1
09-29-2005, 03:29 PM
More likely you have a syntax error in the array. Post a link to your page or the code for your array. Avoid using unescaped single quotes (') inside the text delimited by single quotes, ex:

messages[1] = new Array('duck2.gif','Here's a duck on a light blue background.',"#DDECFF");will not work but, this will:

messages[1] = new Array('duck2.gif','Here\'s a duck on a light blue background.',"#DDECFF");And make sure your arrays follow the template, especially as far as quoting, commas, sequential numbering (don't skip any numbers) go.