Skip to main content

Best Drop Menu Using Jquery

Hi friends lets build a new and stylish Drop Menu using Jquery. You just need some html code and few lines of your Jquery. Its very simple and easy to build. We are performing Show function and hide function in jquery and some other functions to enhance the quality of our button like using mouseup and mouseover functions.
Most important code line of the whole script is : $(".account").click(function()
You can Download the whole code.

Scripting Code :

<script type="text/javascript">
$(document).ready(function()
{
$(".account").click(function()
{
var X=$(this).attr('id');

if(X==1)
{
$(".submenu").hide();
$(this).attr('id', '0');      
}
else
{

$(".submenu").show();
$(this).attr('id', '1');
}
           
});

//Mouseup textarea false
$(".submenu").mouseup(function()
{
return false
});
$(".account").mouseup(function()
{
return false
});


//Textarea without editing.
$(document).mouseup(function()
{
$(".submenu").hide();
$(".account").attr('id', '');
});
           
});
           
            </script>

Menu Image :



HTML Code :

<body>
 <div style='margin:50px'>
           
            <div class="dropdown">
            <a class="account" >
            <span>My Account</span>
            </a>
            <div class="submenu" style="display: none; ">

              <ul class="root">
<li >
                  <a href="#Dashboard" >Dashboard</a>
                </li>

               
                <li >
                  <a href="#Profile" >Profile</a>
                </li>
               <li >

                  <a href="#settings">Settings</a>
                </li>
              

                <li>
                  <a href="#feedback">Send Feedback</a>
                </li>



                <li>
                  <a href="#signout">Sign Out</a>
                </li>
              </ul>
            </div>
            </div>
           
            </div>
</body>

Hope you'll like this post. Thanks for visiting.

Comments

Popular posts from this blog

Network Topologies (Tutorial-4)

Topology refers to the way in which the network of computers is connected. The choice of topology is dependent upon--- Type and number of equipment being used  Planned applications and rate of data transfers  Required response times  Cost Types of Network Topologies Physical Topology: Physical topology defines how devices are connected to the network through the actual cables that transmit data(physical structure of the network)  Logical Topology: Logical Topology (also referred to as Signal Topology) is a network computing term used to describe the arrangement of devices on a network and how they communicate with one another.

Cisco Hierarchical Model

Cisco Hierarchical Model Defined by Cisco to simplify the design, implementation, and maintenance of responsive, scalable, reliable, and cost-effective networks. The 3 layers are logical and not physical – there may be many devices in a single layer, or a single device may perform the functions of 2 layers, eg: core and distribution. The Cisco Hierarchical Model

Eden: PHP Library To Get Things Easy For PHP Developer

Eden is PHP Library designed for helping developers in their rapid development work. In Our most of the project we have to integrate our developed website or application with most of  the social networking websites like Google, Facebook, Twitter, yahoo etc. so what we do is we integrate libraries of different websites differently Although We could make the code reusable but still if the websites increases then confusion will also increases. Adding different libraries form different sources add more complexity to your project and ends up to be hard to maintain. Eden simply a set of reusable components, that works with any PHP framework and CMS. Eden makes code logical and readable with dead simple syntax. Eden Will work With Most Of Web services including Amazon Web service Facebook Foursquare Google twitter tumbler Paypal Yahoo You could Download the File From  Eden Official Website  and Can use this will just a simply including this...