DHTML Hierarchical Popup Menus from webreference.com - need help
Has anyone heard of the DHTML Hierarchical Popup Menus from webreference.com? It's an online tool that creates pull-down menus for you, and I happened to try to make a menu for my site. The online tool is located here: http://www.webreference.com/dhtml/dynomat/hiermenus3/ie/ . If anyone has any experience with it, please read on.
After what seemed to be long hours, I finally came to the last step of configuring the menu to work on my site, until I hit a snag . It's a javascript error that I can't figure out. The error is as follows:
Line: 8
Char: 3
Error: 'isMenu' is undefined
Code: 0
It's at my site (which has the error) here: http://www.redrival.com/digitalfx/newmain.html . The text MENU is the link that is supposed to be for the menu. The error occurs in this coding in the html of the document:
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
if (isMenu) {
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='hierArrays.js'><\/SCRIPT>");
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='hierMenus.js'><\/SCRIPT>");
}
//-->
</SCRIPT>
BTW, the <\/SCRIPT> is supposed to be like that.. what with those \/. So if someone knows the solution to this javascript problem, please tell me it... before I go crazy !! You can also email me the solution at [email protected] .
Thanks, Sabrina
P.S. I've noticed that when I actually click on the MENU link, 2 new javascript errors appear... boy, that's all I needed...
Lloyd Hassell posted this at 02:10 — 25th April 2000.
They have: 231 posts
Joined: Feb 2000
"isMenu" should be a variable. Maybe this determines whether the user can see the menu with their browser.
Add this to your document:
var isMenu = (document.all | | document.layers) ? 1 : 0;
:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.