By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,688 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

Link Description script...

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a

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