Forum Moderators: coopster

Message Too Old, No Replies

Parse errors

on Javascript Dhtml menus

         

russgri

5:53 am on Jun 29, 2004 (gmt 0)

10+ Year Member



I am snookered!
I have been trying to set up Dhtml Tree Menu
This is template ...php...where header leftnav content and footer.

javascript code in head section of header.php


Parse error: parse error, expecting `','' or `';'' in /home/hostfoxw/public_html/inc/header.php on line 181

Line 81 is:

s = "MSIE";

Timotheos

6:08 am on Jun 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm confused... is this line suppossed to be javascript or php? From your error I take it that it's php and therefore it should be

$s = "MSIE";

otherwise your js is getting parsed by php which is bad.