DevelopPHP
home gear home donate
Search Results For
in:

Libraries book

HTML Library CSS Library JavaScript Library PHP Library

Videosbook

PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous

Resourcesbook

Website Hosting Developer Q+A
<iframe width="560" height="315" src="http://www.youtube.com/embed/4PBa5juYwaA" frameborder="0" allowfullscreen></iframe>
You can embed this video on your blog or web page by copying the video embed code above and pasting it into the source code of your page. Adjust the width and height to specify the size you would like it to display.
Thumb JavaScript CSS Custom Drop Down Menu System Tutorial Validated HTML5
Embed Source - http://www.youtube.com/watch?v=4PBa5juYwaA
Publish Date - Sep 05, 2012     Author - Adam Khoury
JavaScript CSS Custom Drop Down Menu System Tutorial Validated HTML5
Tutorial for creating custom JavaScript and CSS drop down menu systems for your website. Exploring Javascript functionality to render special behaviors in our drop down list menus. Pure CSS menus are king but JavaScript in the mix is fun too, why not play!
Lesson Code
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Javascript CSS Drop Menu Tutorial By Adam Khoury</title>
<style type="text/css">
body{ margin:0px; }
div#myheader{
height:100px;
background:#D2E9FF;
border-bottom:#09F 1px solid;
}
div#logo{
height:75px;
border:#09F 1px dashed;
font-size:44px;
padding:0px 12px;
}
div#headermenusystem{ margin-left:16px; }
div#headermenusystem > div{ float:left; margin:0px 20px; }
div.dropmenus {
display:none;
position:absolute;
top:100px;
width:120px;
background:#D2E9FF;
z-index:2;
padding:4px;
border:#0385CB 3px solid;
border-top:none;
-moz-border-radius:0px 0px 8px 8px;
border-radius:0px 0px 8px 8px;
}
div.dropmenus > a {
display:block;
margin:4px;
padding:7px;
font-size:14px;
text-decoration:none;
background:#E8E8E8;
border:#666 1px solid;
-moz-border-radius:3px; 
border-radius:3px; 
color:#000;
}
div.dropmenus > a:hover {
background:#FFF;
border:#06F 1px solid; 
color: #06F;
}
div#dropmenu1{left:24px;}
div#dropmenu2{left:116px;}
div#dropmenu3{left:214px;}

div#restofpage{ padding:36px; }
</style>
<script type="text/javascript" src="js/fadeEffects.js"></script>
<script type="text/javascript">
var ma = ["dropmenu1","dropmenu2","dropmenu3"];
function dropMenu(x){
for (var m in ma) {
if(ma[m] != x){
document.getElementById(ma[m]).style.display = "none";
}
}
if(document.getElementById(x).style.display == 'block'){
fadeOut(x);
} else {
fadeIn(x);
}
}
</script>
</head>
<body>
<!-- START HEADER -->
<div id="myheader">
  <div id="logo">Our Company</div>
  <!-- START MENU SYSTEM -->
  <div id="headermenusystem">
    <div id="cont1">
      <a href="#" onclick="return false;" onmousedown="dropMenu('dropmenu1')">Services</a>
      <div id="dropmenu1" class="dropmenus">
        <a href="services.php?x=pool">Pool Cleaning</a>
        <a href="services.php?x=yard">Yard Work</a>
        <a href="services.php?x=pest">Pest Removal</a>
      </div>
    </div>
    <div id="cont2">
      <a href="#" onclick="return false;" onmousedown="dropMenu('dropmenu2')">Locations</a>
      <div id="dropmenu2" class="dropmenus">
        <a href="locations.php?x=Queens">Queens</a>
        <a href="locations.php?x=Brooklyn">Brooklyn</a>
        <a href="locations.php?x=Bronx">Bronx</a>
      </div>
    </div>
    <div id="cont3">
      <a href="#" onclick="return false;" onmousedown="dropMenu('dropmenu3')">Staff</a>
      <div id="dropmenu3" class="dropmenus">
        <a href="staff.php?x=george">George</a>
        <a href="staff.php?x=allen">Allen</a>
        <a href="staff.php?x=frank">Frank</a>
      </div>
    </div>
    <div>
      <a href="contact.php">Contact Us</a>
    </div>
  </div>
  <!-- END MENU SYSTEM -->
</div>
<!-- END HEADER -->
<div id="restofpage" onmousedown="dropMenu()" style="height:500px;">
  <h2>Welcome</h2>
  <p>Welcome to my company website...</p>
</div>
</body>  
</html> 

Home   •   Terms of Use   •   T-Shirts   •   RSS   •   Testimonials   •   Subscribe   •   Classroom Chalkboard   •   Developer Q+A   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties
DevelopPHP.com is a growing educational system packed with video and written material that you can access 24/7 100% free. The focus here in 2013 is spread between five technologies: HTML, CSS, JavaScript, PHP and MySQL. Learn programming theory, database interaction, web design, animation, graphics editing, vector art, 3D modeling, and much more. The educational experience here is a hybrid one offering both high quality video tutorials and code libraries that grow more robust every day. The code libraries are being assembled so that developers can discover all of the building blocks of their favorite languages. The libraries coupled with high quality video tutorials will take you deep down the rabbit hole very quickly. You can also ask questions and get free advice at WebIntersect.com.
©2014 DevelopPHP.com HTML5