Curtis Rempel <curtis@telus.net> writes:
[color=blue]
> I'm using the cascademenu.js file from
>
>
http://javascript.internet.com/navig...cade-menu.html[/color]
....[color=blue]
> I get "menuBar is not defined".[/color]
[color=blue]
> Can anybody tell me why?[/color]
They are expecting the element with id="menuBar" to be available as a
global variable of that name. IE is one of the only browsers that makes
it available like that. The correct method of accessing such an element
is with document.getElementById("menuBar").
That means that the script is written specifically to IE. Making it work
in other browsers can be problematic. I recommend finding another.
[color=blue]
> Alternatively, can anybody suggest an equivalent menu script that does
> work with Mozilla and IE?[/color]
.... but I'm not familiar with one.
/L
--
Lasse Reichstein Nielsen -
lrn@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'