Results 1 to 2 of 2

Thread: RE:http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

  1. #1
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default RE:http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

    http://www.dynamicdrive.com/dynamici...agetooltip.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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,920
    Thanks
    43
    Thanked 3,187 Times in 3,151 Posts
    Blog Entries
    12

    Default

    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:
    Code:
    messages[1] = new Array('duck2.gif','Here's a duck on a light blue background.',"#DDECFF");
    will not work but, this will:
    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •