Team:UCLA/anuved verma ucla2014 workspace

From 2014.igem.org

(Difference between revisions)
Line 5: Line 5:
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
-
//$("h2").hide();
+
$("#menu > li > ul").hide();
-
$("h2").click(function() {
+
$("#menu > li").mouseover(function() {
-
$("h2").hide(1000);
+
$("#menu > li > ul").toggle(1000);
});
});
});
});
</script>
</script>
-
 
-
<style>
 
-
#menu li{
 
-
position:relative;
 
-
float:left;
 
-
list-style:none;
 
-
}
 
-
#menu a{
 
-
color:white;
 
-
background:black;
 
-
padding:5px;
 
-
text-decoration:none;
 
-
width:98px;
 
-
display:block;
 
-
text-align:center;
 
-
}
 
-
#menu{
 
-
margin-left:auto;
 
-
margin-right:auto;
 
-
width:900px;
 
-
}
 
-
#menu a:hover{
 
-
background:deepskyblue;
 
-
}
 
-
 
-
#menu li ul{
 
-
background:black;
 
-
display:none;
 
-
position:absolute;
 
-
text-align:center;
 
-
top:25px;
 
-
        right:0px;
 
-
}
 
-
#menu li:hover ul{
 
-
display:block;
 
-
}
 
-
#dropdown_menu li ul li{
 
-
position:relative;
 
-
}
 
-
</style>
 

Revision as of 04:22, 16 July 2014

Click Here.