471,091 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,091 software developers and data experts.

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 javascriptsource.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

Silas

Jul 23 '05 #1
2 1273
Lee
Silas said:

Hi. This Link Description script is driving me crazy. The first URL below is
the script exactly as I got it from javascriptsource.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


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 ...")

Jul 23 '05 #2

"Lee" <RE**************@cox.net> wrote in message
news:c8*********@drn.newsguy.com...
Silas said:

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

Thanks in advance for any help.

http://mywebpage.netscape.com/silasm...ionscript.html

http://mywebpage.netscape.com/silasm...onscript2.html


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 ...")


That did it! Thank you so much, Lee.

Silas

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by JimO | last post: by
4 posts views Thread by Miguel Dias Moura | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.