www.webdeveloper.com
Results 1 to 5 of 5

Thread: troubleshoot a downloaded js which I have modified

  1. #1
    Join Date
    Feb 2004
    Posts
    7

    troubleshoot a downloaded js which I have modified

    I recently downloaded a js from your site: its a navigation tool - in a table format, with link descriptions showing up in a cell on the righthand side of the table. On a mouseover, the colors of the link boxes change, as well as the link descriptions.
    I have added images in the link description boxes and also added extra links.
    It worked fine with these additions, until I got to adding the 7th link (which is #6 in the coding).
    The mouse over now allows the colors to change, but the image does not change at all. It stays at the original image no matter where I place the mouse.
    I have attached the file here for you to look at.
    The "linktext[6]" and the last "<td onclick="window.location . . . ."
    has been added, which stopped everything from working.
    I appreciate any help you may have.

    springtime
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2003
    Location
    In my house
    Posts
    4,004
    It's because in that last link you added, you didn't escape the apostrophe in "Buyer's Agent".

    There's a nice little demo of something that's almost exactly like this that Vladdy set up - it's located here..
    Attached Files Attached Files
    Last edited by Paul Jr; 02-21-2004 at 06:51 PM.

  3. #3
    Join Date
    Feb 2004
    Posts
    7

    thank you!

    Thank you so much Paul Jr.!
    Omitting that apostrophe worked.
    I'm new at this js stuff and just stumbling along.

    And thanks for the demo!

    springtime

  4. #4
    Join Date
    Aug 2003
    Location
    In my house
    Posts
    4,004

    Re: thank you!

    Originally posted by springtime
    Thank you so much Paul Jr.!
    Omitting that apostrophe worked.
    I'm new at this js stuff and just stumbling along.

    And thanks for the demo!

    springtime
    You're welcome, glad I was able to help.

    And these forums are an invaluable resource to people who are stumbling around. Everything I've learned about JS I got from these forums.

    Also, you can escape the apostrophe with a backslash ("Buyer\'s Agent"), instead of just completely removing it.

  5. #5
    Join Date
    Feb 2004
    Posts
    7

    Cool thank you

    Thank you Paul Jr.

    I also learned about html from 1 book and browsing the net. Now I'm slowly learning js from the net.

    springtime

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles