Results 1 to 3 of 3

Thread: Image w/ description tooltip

  1. #1
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image w/ description tooltip

    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

  2. #2
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  3. #3
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •