View Full Version : javascript menu eclipsed by flash object

03-12-2004, 04:25 AM
I guess this is a common problem. Flash objects sit on top of everything else.

I have been recommended to use visibility:hidden and the OnClick event as thus:

<embed id="flashAnimation" .../>

document.getElementById( 'flashAnimation' ).style.visibility = 'hidden';

This is how the javascript menu is integrated into the page just before end of BODY

<script language = "JavaScript" src = "nav/menu.js"></script>
<script language = "JavaScript" src = "nav/menu_items.js"></script>
<script language = "JavaScript" src = "nav/menu_tpl.js"></script>
<script language = "JavaScript">

new menu (MENU_ITEMS, MENU_POS);


In order to associate the Onlick event with the menu would I need to name the menu ?

TO be honest I'm having a bit of trouble putting it all together.

Can anyone advise ?

03-12-2004, 05:21 AM