R
Randell D.
Folks,
I've found a nice menu piece of javascript that works fine when the code is
included entirely inside the html page. However, when I place the
javascript code outside, in its own ".js" type file, it doesn't execute.
IE6 reports an error "Object expected" line 30, char 1, code 0. This is the
BODY tag which I've pasted below (with carriage returns to make it easier to
read). I cannot understand as to how this line could be problematic though
since its the exact same in my 'inline' script which works.
<BODY marginwidth="0"
marginheight="0"
style="margin: 0"
onLoad="writeMenus()"
onResize="if (isNS4) nsResizeHandler()">
Why does it fail? How do I fix it? If it helps further, I have the code
uploaded and available at:
This is where the menu is 'inline'
http://www.wiredwords.net/a.htm
This is where the menu is included using <script src=></script> tags
http://www.wiredwords.net/b.htm
Thanks in advance,
Randell D.
I've found a nice menu piece of javascript that works fine when the code is
included entirely inside the html page. However, when I place the
javascript code outside, in its own ".js" type file, it doesn't execute.
IE6 reports an error "Object expected" line 30, char 1, code 0. This is the
BODY tag which I've pasted below (with carriage returns to make it easier to
read). I cannot understand as to how this line could be problematic though
since its the exact same in my 'inline' script which works.
<BODY marginwidth="0"
marginheight="0"
style="margin: 0"
onLoad="writeMenus()"
onResize="if (isNS4) nsResizeHandler()">
Why does it fail? How do I fix it? If it helps further, I have the code
uploaded and available at:
This is where the menu is 'inline'
http://www.wiredwords.net/a.htm
This is where the menu is included using <script src=></script> tags
http://www.wiredwords.net/b.htm
Thanks in advance,
Randell D.