PDA

View Full Version : Got a problem with a template and javascript


Sharg
Wed 9th Aug '00, 5:04pm
Hi, I inserted a complex javascript tag in my site header.
It now returns a php error.

How can I insert a header containing javascript without having problem.

Thanks,
Benj

Sharg
Wed 9th Aug '00, 5:24pm
Ok here is the advertising code that cause me the error:


<p align="right"><script language="javascript">
var a=Math.round(Math.random()*9999999999);
var b="<a href=\"http://www.domain.com/cgi-bin/c.cgi?000110="+a+"\"><img src=\"http://www.domain.com/cgi-bin/a.cgi?000110="+a+"\" width=468 height=60 border=0></a>";
document.write(b);
</script>


Here is the error I have:

Parse error: parse error in /big/dom/mydomain/www/forums/forumdisplay.php on line 223

Thanks,
Benj

[Edited by Benj on 08-11-2000 at 07:25 AM]