Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Problem adding Javascript to Links

Quote Reply
Problem adding Javascript to Links
I have been trying to add eXtreme Tracking to my website, but unfortunately I have run into a few problems. I have tried to add the following lines of text to my page:

<a target="_top" href="http://z.extreme-dm.com/s/?tag=summerc">
<img name=im src="http://z0.extreme-dm.com/i/" height=38 border=0
width=41 alt=""></a><script language="javascript"><!--
an=navigator.appName;d=document;function
pr(){d.write("<img src=\"http://z1.extreme-dm.com",
"/z/?tag=summerc&j=y&srw="+srw+"&srb="+srb+"&",
"rs="+r+"&l="+escape(d.referrer)+"\" height=1 ",
"width=1>");}srb="na";srw="na";//-->
</script><script language="javascript1.2"><!--
s=screen;srw=s.width;an!="Netscape"?
srb=s.colorDepth:srb=s.pixelDepth;//-->
</script><script language="javascript"><!--
r=41;d.images?r=d.im.width:z=0;pr();//-->
</script><noscript><img height=1 width=1 alt=""
src="http://z1.extreme-dm.com/z/?tag=summerc&j=n"></noscript>

But, I constantly get these error messages:

1. JavaScript Error: http://summercamps.com/, line 80:

missing ) after argument list.

pr(){d.write("<img src="http://z1.extreme-dm.com",
........................^

2. JavaScript Error: http://summercamps.com/, line 85:

an is not defined.

3. JavaScript Error: http://summercamps.com/, line 88:

d is not defined.

The reason I think I am getting these errors, are because of the ; . Could anyone please help me.

Thank you,
Greg
Quote Reply
Re: Problem adding Javascript to Links In reply to
I, too, am having this problem. The only way that I can get rid of the javascript errors is to add the code manually after rebuilding the index. A pain, to be sure. I also would like to know a solution to this, if there is one.