Thursday, December 17, 2009

Pre-made navigation bar with second sub-menu drop-down functionality



view_tree_modernistClick here to see the demo



Step 1: From the Dashboard, navigate to Layout > Edit HTML (you don’t have to click on expand widgets template), and locate this section code: ]]></b:skin>

Step 2: Add the section code below right after it:

<link href=’slanteddividermenu/ddlevelsmenu-base.css' rel='stylesheet' type='text/css'/>
<link href=’ddlevelsmenu-topbar.css' rel='stylesheet' type='text/css'/>
<link href='ddlevelsmenu-sidebar.css' rel='stylesheet' type='text/css'/>

<script src='ddlevelsmenu.js' type='text/javascript'>

* All Levels Navigational Menu- (c) Dynamic Drive DHTML
* Visit Dynamic Drive at for full source code


Note: The code above references the external .js and .css file, which you need to download below (right click/ select “Save As”)

Step 3: Save your template and navigate to Layout > Page Elements to Add a Gadget > HTML/JavaScript.


Step 4: Copy and paste the section code below in the box and select Save.

<div id="ddtopmenubar" class="slantedmenu">
<li><a href="">Home</a></li>
<li><a href="">DHTML</a></li>
<li><a href="" rel="ddsubmenu2">CSS</a></li>
<li><a href="">Forums</a></li>
<li><a href="" rel="ddsubmenu3">Web Tools</a></li>

<script type="text/javascript">
ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar")

<!--HTML for the Drop Down Menus associated with Top Menu Bar-->
<!--They should be inserted OUTSIDE any element other than the BODY tag itself-->
<!--A good location would be the end of the page (right above "</BODY>")-->

<!--Top Drop Down Menu 1 HTML-->

<ul id="ddsubmenu1" class="ddsubmenustyle">
<li><a href="#">Item 1a</a></li>
<li><a href="#">Item 2a</a></li>
<li><a href="#">Item Folder 3a</a>
  <li><a href="#">Sub Item 3.1a</a></li>
  <li><a href="#">Sub Item 3.2a</a></li>
  <li><a href="#">Sub Item 3.3a</a></li>
  <li><a href="#">Sub Item 3.4a</a></li>
<li><a href="#">Item 4a</a></li>
<li><a href="#">Item Folder 5a</a>
  <li><a href="#">Sub Item 5.1a</a></li>
  <li><a href="#">Item Folder 5.2a</a>
    <li><a href="#">Sub Item 5.2.1a</a></li>
    <li><a href="#">Sub Item 5.2.2a</a></li>
    <li><a href="#">Sub Item 5.2.3a</a></li>
    <li><a href="#">Sub Item 5.2.4a</a></li>
<li><a href="#">Item 6a</a></li>

<!--Top Drop Down Menu 2 HTML-->

<ul id="ddsubmenu2" class="ddsubmenustyle">
<li><a href="#">Item 1b</a></li>
<li><a href="#">Item 2b</a></li>
<li><a href="#">Item Folder 3b</a>
  <li><a href="#">Sub Item 3.1b</a></li>
  <li><a href="#">Sub Item 3.2b</a></li>
  <li><a href="#">Sub Item 3.3b</a></li>
  <li><a href="#">Sub Item 3.4b</a></li>
<li><a href="#">Item 4b</a></li>
<li><a href="#">Item Folder 5b</a>
  <li><a href="#">Sub Item 5.1b</a></li>
  <li><a href="#">Item Folder 5.2b</a>
    <li><a href="#">Sub Item 5.2.1b</a></li>
    <li><a href="#">Sub Item 5.2.2b</a></li>
    <li><a href="#">Sub Item 5.2.3b</a></li>
<li><a href="#">Item 6b</a></li>

<!--Top Drop Down Menu 3 HTML-->

<ul id="ddsubmenu3" class="ddsubmenustyle">
<li><a href=>blogspotvision</a></li>
<li><a href="">blogspotvision</a></li>
<li><a href="">blogspotvision</a></li>
<li><a href="">blogspotvision</a></li>
<li><a href="">blogspotvision</a></li>

Note: Modify the links and Preview your template.


*Tutorial completed

Labels: , ,


Post a Comment

Subscribe to Post Comments [Atom]

<< Home