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

JavaScript Problem

Quote Reply
JavaScript Problem
I am trying to insert a javascript into site_html.pl under the Home Page portion, when i build pages then look my page i keep getting JS Alerts. Any suggestions? Thanks, Chris
Quote Reply
Re: JavaScript Problem In reply to
Java script uses certain varibale or marks that Perl uses, Perl will cut these marks out, You'll most likly haft to do it manualy, It's hard to explain, mabey someone else could explain it a bit better,
Thanks
Joey
Quote Reply
Re: JavaScript Problem In reply to
Joey is right.

You might want to use a rel/link to include
the javascript, much like they way a *.css
file is used. Then just ad the code
in your page that where it would have been
used. Try http://www.webreference.com/js . It has a great JS resource, or www.docjavascript.com . Those two should get you going.

------------------
The Crowe crowe@darkspiral.com
http://www.darkspiral.com
Quote Reply
Re: JavaScript Problem In reply to
I goofed.

That second site should have been

http://www.infohiway.com/javascript/indexf.htm The Cut-N-Paste Java Script site Smile

OOps

------------------
The Crowe crowe@darkspiral.com
http://www.darkspiral.com
Quote Reply
Re: JavaScript Problem In reply to
Ok, i have no idea what to look for in the script that will confilct w/ perl. It is a script i am going to use for tracking visitors and stuff, if anybody could tell me what i need to change, it would be greatly appreciated. Btw, Does this have anything to do w/ building pages w/ the links script? anyways, here's the js:

<font size=1 color=white>
<a target="_top" href="http://z.extreme-dm.com/s/?tag=webres">
<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=webres&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=webres&j=n"></noscript>
</font>