WEST SIDE CALI KILLERS
Sexy Drop Down Menu with jQuery and CSS 23104840
WEST SIDE CALI KILLERS
Sexy Drop Down Menu with jQuery and CSS 23104840
WEST SIDE CALI KILLERS
Would you like to react to this message? Create an account in a few clicks or log in to continue.


HOME OF WSCK CLAN
 
HomeSearchLatest imagesstoreRegisterLog in

Share
 

 Sexy Drop Down Menu with jQuery and CSS

View previous topic View next topic Go down 
AuthorMessage
HolyHandGrenade
Founder
Founder
HolyHandGrenade

Xbox Live Gamertag HolyHandGrenade
Country : USA
Posts : 609
Caps : 1104
Times Thanked : 26
Comments : My Honor is Loyalty
Browser : Chrome

Sexy Drop Down Menu with jQuery and CSS Empty
PostSubject: Sexy Drop Down Menu with jQuery and CSS   Sexy Drop Down Menu with jQuery and CSS I_icon_minitimeThu Jul 26, 2012 2:31 am

See Source
Author: Soh Tanaka

Navigation Menu is one of the most important thing on your forum.

In this tutorial you will learn how to create a beautiful and professional Drop Down Menu. We will create this effect using jQuery. You need to edit templates;

The HTML code is very simple. You just need a list of links. If it has a sub-menu, it should have another list inside. Your HTML code should be like this below:

Step 1: The HTML code:

Administration Panel => Display => Templates => General Edit template overall_header Find this code:


Code:
<div id="pun-navlinks">
        <ul class="clearfix">
      <li>{GENERATED_NAV_BAR}</li>
  </ul>
</div>

And replace with this:

Code:

<ul class="topnav">
            <li><a href="#">Home</a></li>
            <li>
                <a href="#">Tutorials</a>

                <ul class="subnav">
                    <li><a href="#">Sub Nav Link</a></li>
                    <li><a href="#">Sub Nav Link</a></li>
                    <li><a href="#">Sub Nav Link</a></li>
                    <li><a href="#">Sub Nav Link</a></li>
                    <li><a href="#">Sub Nav Link</a></li>

                </ul>
            </li>
            <li>
                <a href="#">Resources</a>
                <ul class="subnav">
                    <li><a href="#">Sub Nav Link</a></li>
                    <li><a href="#">Sub Nav Link</a></li>

                    <li><a href="#">Sub Nav Link</a></li>
                    <li><a href="#">Sub Nav Link</a></li>
                    <li><a href="#">Sub Nav Link</a></li>
                    <li><a href="#">Sub Nav Link</a></li>
                </ul>
            </li>
            <li><a href="#">About Us</a></li>

            <li><a href="#">Advertise</a></li>
            <li><a href="#">Submit</a></li>
            <li><a href="#">Contact Us</a></li>

            <li>
                <a href="#">More</a>
                <ul class="subnav">
                    <li><a href="#">Follow Us on Twitter</a></li>
                    <li><a href="#">Like Us on Facebook</a></li>
                    <li><a href="#">Subscribe on Youtube</a></li>
                </ul>
            </li>

        </ul> 

Hit save and click publish

Step 2: The CSS code:
Administration Panel => Display => Colors => CSS Stylesheet Paste the following to the bottom of your CSS and then click Submit:

Code:
ul.topnav {
  list-style: none;
  padding: 0 20px; 
  margin: 0;
  float: left;
  width: 920px;
  background: #222;
  font-size: 1.2em;
  background: url(http://i43.servimg.com/u/f43/14/73/12/96/topnav10.gif) repeat-x;
}
ul.topnav li {
  float: left;
  margin: 0; 
  padding: 0 15px 0 0;
  position: relative; /*--Declare X and Y axis base--*/
}
ul.topnav li a{
  padding: 10px 5px;
  color: #fff;
  display: block;
  text-decoration: none;
  float: left;
}
ul.topnav li a:hover{
  background: url(http://i43.servimg.com/u/f43/14/73/12/96/topnav11.gif) no-repeat center top;
}
ul.topnav li span { /*--Drop down trigger styles--*/
  width: 17px;
  height: 35px;
  float: left;
  background: url(http://i43.servimg.com/u/f43/14/73/12/96/subnav10.gif) no-repeat center top;
}
ul.topnav li span.subhover {background-position: center bottom; cursor: pointer;}

/*--Hover effect for trigger--*/
ul.topnav li ul.subnav {
  list-style: none;
  position: absolute;
  left: 0; top: 35px;
  background: #333;
  margin: 0; padding: 0;
  display: none;
  float: left;
  width: 170px;
  -webkit-border-bottom-right-radius: 05px;
  -webkit-border-bottom-left-radius: 5px;
  -moz-border-radius-bottomright: 05px;
  -moz-border-radius-bottomleft: 5px;
  border-bottom-right-radius: 05px;
  border-bottom-left-radius: 5px;
  border: 1px solid #111;
}
ul.topnav li ul.subnav li{
  margin: 0; padding: 0;
  border-top: 1px solid #252525;
  border-bottom: 1px solid #444;
  clear: both;
  width: 170px;
  -webkit-border-bottom-right-radius: 05px;
  -webkit-border-bottom-left-radius: 5px;
  -moz-border-radius-bottomright: 05px;
  -moz-border-radius-bottomleft: 5px;
  border-bottom-right-radius: 05px;
  border-bottom-left-radius: 5px;
}
html ul.topnav li ul.subnav li a {
  float: left;
  width: 145px;
  background: #333 url(http://i43.servimg.com/u/f43/14/73/12/96/dropdo10.gif) no-repeat 10px center;
  padding-left: 20px;
}
html ul.topnav li ul.subnav li a:hover { /*--Hover effect for subnav links--*/
  background: #222 url(http://i43.servimg.com/u/f43/14/73/12/96/dropdo10.gif) no-repeat 10px center;
}

Step 3: The jQuery code:
Put this link in the template overall_header where other script are below head tag.


Code:
<script type="text/javascript" src="http://near-reality123123123.webs.com/bar.js"></script>

[You must be registered and logged in to see this link.]
Back to top Go down
 

Sexy Drop Down Menu with jQuery and CSS

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» (HTML) DROP DOWN MENU

Permissions in this forum:You cannot reply to topics in this forum
WEST SIDE CALI KILLERS :: Computer Related :: Coding :: Forumotion Related-