Team:Virginia/Notebook
From 2014.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<html> | <html> | ||
<head> | <head> | ||
+ | <script src="//code.jquery.com/jquery-git2.js"></script> | ||
<style> | <style> | ||
- | ul,li { | + | ul,li { list-style-type: none; |
- | + | list-style-position:inside; | |
- | + | margin:0px 0px; | |
- | + | padding:0; | |
+ | |||
} | } | ||
Line 42: | Line 44: | ||
font-family:sans-serif; | font-family:sans-serif; | ||
} | } | ||
- | </style> | + | </style> |
</head> | </head> | ||
- | |||
<body> | <body> | ||
- | <ul id = "navbar"> | + | <ul id="navbar"> |
<li><a href="https://2014.igem.org/Team:Virginia">Home</a></li> | <li><a href="https://2014.igem.org/Team:Virginia">Home</a></li> | ||
Line 82: | Line 83: | ||
<li><a href="https://2014.igem.org/"><img src= | <li><a href="https://2014.igem.org/"><img src= | ||
"http://i.imgur.com/rLFTkAP.png" | "http://i.imgur.com/rLFTkAP.png" | ||
- | height=" | + | height="28px"></a></li> |
</ul> | </ul> | ||
+ | <br> | ||
+ | <script> | ||
+ | $('#navbar > li').hover(function() { | ||
+ | $(this).find('ul').slideToggle("slow"); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $('#navbar > li > ul > li').mouseover(function(){ | ||
+ | $(this).css("background-color","#5F9C87"); | ||
+ | }); | ||
+ | |||
+ | $('#navbar li').hover(function(){ | ||
+ | $(this).css("background-color","#40CC9D"); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $('#navbar > li > a').hover(function(){$(this).parent().css("background-color","#5F9C87");}, function(){$(this).parent().css("background-color","#40CC9D");}); | ||
+ | |||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 14:25, 25 July 2014