Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javascript menu eclipsed by flash object

    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);

    //-->
    </script>

    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 ?

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •