Link Description script...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Silas

    Link Description script...

    Hi. This Link Description script is driving me crazy. The first URL below is
    the script exactly as I got it from javascriptsourc e.com, which works fine.
    But as soon as I replace the linktext with my own (see the second URL) the
    script stops working. I didn't change anything else from the original but
    the linktext. I've been racking my brains for hours but whatever it is, I'm
    missing it :-(

    Thanks in advance for any help.





    Silas

  • Lee

    #2
    Re: Link Description script...

    Silas said:[color=blue]
    >
    >Hi. This Link Description script is driving me crazy. The first URL below is
    >the script exactly as I got it from javascriptsourc e.com, which works fine.
    >But as soon as I replace the linktext with my own (see the second URL) the
    >script stops working. I didn't change anything else from the original but
    >the linktext. I've been racking my brains for hours but whatever it is, I'm
    >missing it :-(
    >
    >Thanks in advance for any help.
    >
    >http://mywebpage.netscape.com/silasm...ionscript.html
    >
    >http://mywebpage.netscape.com/silasm...onscript2.html[/color]

    If you try that second page in Netscape, and look at the Javascript
    console, you'll see that it's complaining about the single quote in
    your text on line 103, column 161.

    Since the string is delimited by single quotes, you can't include
    apostrophe's in the text unless you escape them. (eg, "We\'ve all ...")

    Comment

    • Silas

      #3
      Re: Link Description script...


      "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
      news:c86si601fb 7@drn.newsguy.c om...[color=blue]
      > Silas said:[color=green]
      > >
      > >Hi. This Link Description script is driving me crazy. The first URL below[/color][/color]
      is[color=blue][color=green]
      > >the script exactly as I got it from javascriptsourc e.com, which works[/color][/color]
      fine.[color=blue][color=green]
      > >But as soon as I replace the linktext with my own (see the second URL)[/color][/color]
      the[color=blue][color=green]
      > >script stops working. I didn't change anything else from the original[/color][/color]
      but[color=blue][color=green]
      > >the linktext. I've been racking my brains for hours but whatever it is,[/color][/color]
      I'm[color=blue][color=green]
      > >missing it :-(
      > >
      > >Thanks in advance for any help.
      > >
      > >http://mywebpage.netscape.com/silasm...ionscript.html
      > >
      > >http://mywebpage.netscape.com/silasm...onscript2.html[/color]
      >
      > If you try that second page in Netscape, and look at the Javascript
      > console, you'll see that it's complaining about the single quote in
      > your text on line 103, column 161.
      >
      > Since the string is delimited by single quotes, you can't include
      > apostrophe's in the text unless you escape them. (eg, "We\'ve all ...")
      >[/color]

      That did it! Thank you so much, Lee.

      Silas

      Comment

      Working...