
Originally Posted by
Andy
That could throw it off even in regular html, I think. If you are putting this in a links array in the script, you have to escape the type of quote used to delimit the entry with a down (\) slash when it is used in the entry's content. Like if you are putting it into this sort of thing:
Code:
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a>'
menu1[1]='<a href="http://www.freewarejava.com">Freewarejava.com</a>'
menu1[2]='<a href="http://codingforums.com">Coding Forums</a>'
menu1[3]='<a href="http://www.cssdrive.com">CSS Drive</a>'
The single quotes in your entry must be escaped. Like:
Code:
menu1[0]='<a href="#" onClick="window.open(\'filename.htm\',\'newWnd\',\'width=500,height=400,left=80,top=80,menubar=no,location=no,scrollbars=no,toolbar=no\');return false;">filename</a>'
Bookmarks