Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Smooth Navigational Menu (v3.0) - z-index bug

  1. #1
    Join Date
    Nov 2015
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Smooth Navigational Menu (v3.0) - z-index bug

    1) Script Title: Smooth Navigational Menu (v3.0)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...smoothmenu.htm

    3) Describe problem: Z-index problem. The sub menu is UNDER the previous sub-menu. So, the submenu cannot be seen. The problem happen when sub-menu have another sub-menu (folder). Here I attached screenshot so that it clearer... The problem is in the circle... It suppose to show Sub Item 2.1.1.2 and Sub Item 2.1.1.3 instead of Folder 2.2 and Folder 2.3.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot (317).jpg 
Views:	114 
Size:	13.8 KB 
ID:	5735   Click image for larger version. 

Name:	Screenshot (318).jpg 
Views:	101 
Size:	15.7 KB 
ID:	5736  

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Can you post your link that demonstrates the problem please?
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Nov 2015
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Code:
    <!DOCTYPE html>
    <html>
    <head>
    
    <link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" />
    <link rel="stylesheet" type="text/css" href="ddsmoothmenu-v.css" />
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
    <script type="text/javascript" src="ddsmoothmenu.js">
    
    /***********************************************
    * Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Please keep this notice intact
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    </script>
    
    <script type="text/javascript">
    
    ddsmoothmenu.init({
    	mainmenuid: "smoothmenu1", //menu DIV id
    	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'ddsmoothmenu', //class added to menu's outer DIV
    	//customtheme: ["#1c5a80", "#18374a"],
    	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
    
    ddsmoothmenu.init({
    	mainmenuid: "smoothmenu2", //Menu DIV id
    	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
    	//method: 'toggle', // set to 'hover' (default) or 'toggle'
    	arrowswap: true, // enable rollover effect on menu arrow images?
    	//customtheme: ["#804000", "#482400"],
    	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
    
    </script>
    
    <meta charset="utf-8">
    <title>Dynamic Drive Smooth Navigation Menu</title>
    </head>
    
    <body>
    
    <!-- Markup for mobile menu toggler. Hidden by default, only shown when in mobile menu mode -->
    <a class="animateddrawer" id="ddsmoothmenu-mobiletoggle" href="#">
    <span></span>
    </a>
    
    <h2>Example 1</h2>
    
    <div id="smoothmenu1" class="ddsmoothmenu">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Item 1</a></li>
    <li><a href="http://www.dynamicdrive.com">Folder 0</a>
      <ul>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.1</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.4</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.4</a></li>
      </ul>
    </li>
    <li><a href="http://www.dynamicdrive.com">Folder 1</a>
      <ul>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.1</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.4</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.4</a></li>
      </ul>
    </li>
    <li><a href="http://www.dynamicdrive.com">Item 3</a></li>
    <li><a href="http://www.dynamicdrive.com">Folder 2</a>
      <ul>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.1</a></li>
      <li><a href="http://www.dynamicdrive.com">Folder 2.1</a>
        <ul>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1</a></li>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.1.2</a></li>
        <li><a href="http://www.dynamicdrive.com">Folder 2.1.1</a>
    		<ul>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.1</a></li>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.2</a></li>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.3</a></li>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.4</a></li>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.5</a></li>
    		</ul>
        </li>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.1.4</a></li>
        </ul>
      </li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Folder 2.2</a>
        <ul>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.2.1</a></li>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.2.2</a></li>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.2.3</a></li>
        </ul>
      </li>
      <li><a href="http://www.dynamicdrive.com">Folder 2.3</a>
        <ul>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.3.1</a></li>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.3.2</a></li>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.3.3</a></li>
        </ul>
      </li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.4</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.5</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.6</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.7</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.8</a></li>
      </ul>
    </li>
    <li><a href="http://www.dynamicdrive.com/style/">Item 4</a></li>
    </ul>
    <br style="clear: left" />
    </div>
    
    
    <h2 style="margin-top:200px">Example 2</h2>
    
    <div id="smoothmenu2" class="ddsmoothmenu-v">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Item 1</a></li>
    <li><a href="http://www.dynamicdrive.com">Folder 0</a>
      <ul>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.1</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.4</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.4</a></li>
      </ul>
    </li>
    <li><a href="http://www.dynamicdrive.com">Folder 1</a>
      <ul>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.1</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.4</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 1.4</a></li>
      </ul>
    </li>
    <li><a href="http://www.dynamicdrive.com">Item 3</a></li>
    <li><a href="http://www.dynamicdrive.com">Folder 2</a>
      <ul>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.1</a></li>
      <li><a href="http://www.dynamicdrive.com">Folder 2.1</a>
        <ul>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1</a></li>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.1.2</a></li>
        <li><a href="http://www.dynamicdrive.com">Folder 2.1.1</a>
    		<ul>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.1</a></li>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.2</a></li>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.3</a></li>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.4</a></li>
        		<li><a href="http://www.dynamicdrive.com">Sub Item 2.1.1.5</a></li>
    		</ul>
        </li>
        <li><a href="http://www.dynamicdrive.com">Sub Item 2.1.4</a></li>
        </ul>
      </li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.2</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.3</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.4</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.5</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.6</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.7</a></li>
      <li><a href="http://www.dynamicdrive.com">Sub Item 2.8</a></li>
      </ul>
    </li>
    <li><a href="http://www.dynamicdrive.com/style/">Item 4</a></li>
    </ul>
    <br style="clear: left" />
    </div>
    
    </body>
    </html>

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Problem confirmed. When the window has a certain size, sub-items 2.1.1.2 and 2.1.1.3 are hidden by folders 2.2 and 2.3. This raises the question of how the menu handles zIndex.

  5. The Following User Says Thank You to molendijk For This Useful Post:

    AHY8008 (11-18-2015)

  6. #5
    Join Date
    Nov 2015
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    It turn out that, all folder have the highers z-index except the selected one.
    * The selected folder is hidden as shown in the green rectangle, and other folders have highest z-index as shown in circle.

    Click image for larger version. 

Name:	Screenshot (320).jpg 
Views:	97 
Size:	20.6 KB 
ID:	5738

  7. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, try the below updated .js file, which should address the issue.
    Attached Files Attached Files
    DD Admin

  8. #7
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    No luck, I'm afraid. Sub-items 2.1.1.2 and 2.1.1.3 continue to hide behind folders 2.2 and 2.3 when the subitems of folder 2.1.1 are displayed to its left.

  9. #8
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm it works for me: Click image for larger version. 

Name:	dd.gif.jpg 
Views:	96 
Size:	15.1 KB 
ID:	5741

    Can you paste the HTML markup you're using to test out the menu?
    DD Admin

  10. #9
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

  11. #10
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ah ok now I see it How about try the attached modified .js file...
    Attached Files Attached Files
    DD Admin

  12. The Following 2 Users Say Thank You to ddadmin For This Useful Post:

    AHY8008 (11-18-2015),molendijk (11-18-2015)

Similar Threads

  1. Smooth Navigational Menu
    By jojom in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-23-2011, 07:30 AM
  2. Smooth Navigational Menu (v1.4) Bug
    By Grouchy Old Man in forum Bug reports
    Replies: 3
    Last Post: 04-14-2010, 05:36 PM
  3. Smooth Navigational Menu (v1.31)
    By jkessler in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-14-2009, 02:44 PM
  4. Smooth Navigational Menu (v1.02) help
    By lhunter322 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-08-2009, 08:35 AM
  5. Smooth Navigational Menu: up instead of down
    By mffishdog in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-15-2008, 04:12 AM

Bookmarks

Posting Permissions

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