Drop Down Menu
How do I make an drop down menu?
Easy Drop Down Menu . What is a drop down menu? How do you make a drop down menu? This script and codes were developed by Vedat Sözen on 27 November 2022, Sunday.
Drop Down Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Drop Down Menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<html>
<head>
<title>DROP DOWN MENU</title>
<meta charset="utf-8">
<link rel="stylesheet" href="stil.css">
<link href='https://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://www.bitstorm.org/jquery/color-animation/jquery.animate-colors-min.js"></script>
<script src="stil.js"></script>
</head>
<body> <h1>DROP DOWN MENU / JQUERY / MOUSEOVER MOUSELEAVE</h1>
<div id="mymenu">
<ul>
<li><a href="#">HOME</a></li>
<li class="aboutus"><a href="#" >ABOUT US</a> <ul> <li class="submenu"><a href="#">HISTORY</a></li> <li class="submenu"><a href="#">CEOS</a></li> <li class="submenu"><a href="#">WORKERS</a></li> <li class="submenu"><a href="#">WHAT WE DO</a></li> </ul>
<li class="services"><a href="#"">OUR SERVICES</a> <ul> <li class="submenu2"><a href="#">DESIGN</a></li> <li class="submenu2"><a href="#">HOSTING</a></li> <li class="submenu2" ><a href="#">LOGO DESIGN</a></li> </ul>
<li><a href="#">REFERENCES</a></li>
<li><a href="#">CONTACT</a></li>
</ul>
</div>
</body> <script src="js/index.js"></script>
</body>
</html>
Drop Down Menu - Script Codes CSS Codes
/* Simple Drop Down Menu ..
When you try to make a drop down menu in css. Its is difficult to learn and understand how altmenus work ..
jquery is a easy way to control altmenus with mouseover and mouseleave method ..
In drop down menu, one of the problems is how to position altmenus under menus ..
You use - position:absolute; left:0; -
But dont forget menus to position:relative;
i hope you like this drop down menu
*/
body { margin:auto; margin-top:50px;}
h1 { font-family:Cuprum; text-align:center;}
#mymenu { position:absolute; width:900px; top:100; margin:auto; right:0; left:0; font-family:Cuprum; font-weight: bold; text-transform: uppercase;}
#mymenu ul { list-style: none; margin: 0; padding: 0;}
#mymenu ul li {
width:150px;
height:40px;
background:black;
color:white; position:relative; float: left; display: inline;
padding: 10px;
text-align: center;
line-height: 40px;
border:1px solid white;
}
#mymenu ul li:hover {
background:red;
}
#mymenu ul li ul { left:0; position: absolute; top:61px;}
a { color:white; text-decoration: none;}
Drop Down Menu - Script Codes JS Codes
$(document).ready(function(){ $(".submenu").hide(); $(".submenu2").hide(); $(".aboutus").mouseover(function(){ $(".submenu").show();
}); $(".aboutus").mouseleave(function(){ $(".submenu").hide();
}); $(".services").mouseover(function(){ $(".submenu2").show();
}); $(".services").mouseleave(function(){ $(".submenu2").hide();
});
});
Developer | Vedat Sözen |
Username | vedatsozen |
Uploaded | November 27, 2022 |
Rating | 3.5 |
Size | 2,509 Kb |
Views | 8,096 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
SIMPLE FOOTBALL QUIZ .. | 2,467 Kb |
SIMPLE ANIMATION | 1,774 Kb |
SIMPLE BILLIARD GAME TRIAL | 2,303 Kb |
LOADING ANIMATION | 1,974 Kb |
CLICKABLE MENU .. | 2,592 Kb |
SIMPLE PHOTO SLIDER | 2,114 Kb |
HOW TO CHANGE BACKGROUND IMAGE OF DIVS | 2,376 Kb |
HOW TO ADD TEXT TO AN ELEMENT WITH JAVASCRIPT | 2,171 Kb |
MOBILE PHONE PAGE WITH SIMPLE ANIMATION | 2,479 Kb |
MATERIAL DESIGN BUTTON ANIMATION | 2,270 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
RollOver Effect 2 | Lmack90 | 2,162 Kb |
Polo, the flying squirrel | Agbales | 2,445 Kb |
Multiple jCarousel | Pafnuty | 2,461 Kb |
Lightrays v2 | Sinthetyc | 2,903 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 Kb |
Hmmm... | Rk007 | 4,848 Kb |
Snow collision | Wojtek1150 | 3,542 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 Kb |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
Filtering with shuffle.js | Deyand | 2,712 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!