java script
| From: | Simon | Date: | Fri, 03 Jan 2003 11:13:39 +0000 |
| Subject: | java script | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6998@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to put this java into template
<script language="JavaScript1.2">
opera=navigator.userAgent.indexOf("Opera")!=-1?1:0;
if (opera)
{ document.write('<link href="html/css/indexOpera.css" rel="stylesheet"
type="text/css">');
}
else
{ document.write('<link href="html/css/index.css" rel="stylesheet"
type="text/css">');
}
</script>
but i receive this error:
Parse error: parse error, expecting `')'' in
d:\share\webdesign\avdija\web\bihnet1\smarty\templates_c\%%117\%%1172603085\
index.tpl.php on line 4
How do I use java script with smarty
Tnx