PDA

View Full Version : Image w/ description tooltip



THE_BATMan_Phln
08-12-2005, 07:09 PM
I've been searching for something like this for two years. I'm building a family tree with about 60 PLUS members. The code works great up to tip number 45 (0-45) then if I add one more, coded 46 or higher, I get the following

An error has accourred on this page.

Line: 123
Char: 3
Error: 'messages[...],0'is null of not an object
Code: 0
URL: (address of local page)

Do you want to continue running scripts on this page?

Corresponding code

117. // preload images that are to appear in tooltip
118. // from arrays above
119. if (document.images) {
120. var theImgs = new Array();
121. for (var i=0; i<messages.length; i++) {
122. theImgs[i] = new Image();
123. theImgs[i].src = messages[i][0];
124. }
125. }

How can I add more tips???

Thanks

THE_BATMan_Phln
08-13-2005, 12:35 AM
Nevermind. I figured it out.

I was trying to skip an entry to use a number for more than one entry. (i.e. use 0-45 for 46 different entries and use ID 50 for multiple entries not using 47-49) The program freaked out 'cuz it was looking for 47, 48 and 49 before it would use 50. I just put in unused entries for 47-49 and it works fine now.

Thanks

cejones
08-17-2005, 11:02 PM
Glad to hear it... I was about to try to link to 200 links... glad to know I just have to be careful and number consecutively.

Chris