displaying menu in fixed div tag fails

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
hautzi
Beginner
Beginner
Posts: 2
Joined: Tue Jun 20, 2006 10:30 pm

displaying menu in fixed div tag fails

Post by hautzi »

hello,

at our website, we use a fixed header-div where the menu is displayed in:

the included menu:

Code: Select all

    <!-- Header-->
    <div id="oben">
        <span class="ueberschrift">
            {if $pageTitle.loginname}<strong>{$pageTitle.loginname}</strong>,{/if}
            du bist {if $pageTitle.pre}{$pageTitle.pre}{else}hier:{/if} <strong>{$pageTitle.shorten|default:"unbekannt"}</strong>
        </span>

		<span id="banneroben" class="nohover"><script>dn_ads(2);</script></span>

        <!-- ***** This is the section of code you need to paste into your web pages ***** -->
        <script type="text/javascript" src="/lib/js/menu/milonic_src.js"></script>	
        <noscript><a href="https://milonic.com/">DHTML JavaScript Menu Powered by Milonic</a></noscript>
        <script type="text/javascript">
        if(ns4)_d.write("<scr"+"ipt type='text/javascript' src='/lib/js/menu/mmenuns4.js'><\/scr"+"ipt>");		
          else _d.write("<scr"+"ipt type='text/javascript' src='/lib/js/menu/mmenudom.js'><\/scr"+"ipt>"); 
        </script>
        <script type="text/javascript" src="/lib/js/menu/menu_data.js"></script>	
        <!-- **** JavaScript Menu HTML Code -->

    </div>
the "oben" css-definition:

Code: Select all

#oben {  
position:fixed;  
z-index:0; /* fuer den Internet Explorer*/  
background-image:url(/images/head.jpg);  
background-repeat:no-repeat;  
top:0px;  
margin:0px;  
height:105px;  
width:100%;  
border:0;  
}
in opera everything works correctly - but in firefox the submenu-items scroll down with the page

is there a possibility to fix the submenuitems as well?

the error occurs on the following website:

http://rd.diginights.com
user: menu
pass: menu
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

The menu typically gets very unhappy being cooped up in a div, as it uses divs, tables, etc., in its internal structure. Can you get it out of the div?
John
hautzi
Beginner
Beginner
Posts: 2
Joined: Tue Jun 20, 2006 10:30 pm

Post by hautzi »

of course, we can...

but then the menu will scroll with the page and won't be fixed at its positon.
is there any other solution for that?

this problem only exists in mozilla firefox
Post Reply