Template:Banner
From 2011.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
- | <http-equiv="content-type" content="text/html;charset=utf-8" /> | + | <meta http-equiv="content-type" content="text/html;charset=utf-8" /> |
<title>University of East Anglia-JIC</title> | <title>University of East Anglia-JIC</title> | ||
Line 91: | Line 91: | ||
.header{ | .header{ | ||
z-index: 1; | z-index: 1; | ||
- | position: | + | position: relative; |
top: 0px; | top: 0px; | ||
height: 293px; | height: 293px; | ||
Line 98: | Line 98: | ||
.menu{ | .menu{ | ||
z-index: 5; | z-index: 5; | ||
- | position: | + | position: relative; |
top: 220px; | top: 220px; | ||
font: 18px Trebuchet MS; | font: 18px Trebuchet MS; | ||
text-align: center; | text-align: center; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</style> | </style> | ||
Line 146: | Line 130: | ||
</div> | </div> | ||
- | |||
- | |||
</div> | </div> | ||
+ | </div> | ||
+ | |||
+ | |||
- | |||
- | < | + | <script type="text/javascript" |
+ | src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | $("ul#topnav li").hover(function() { | ||
+ | $(this).css({ 'background' : 'transparent url(https://static.igem.org/mediawiki/2010/0/03/Valencia_navbar_active.gif) repeat-x'}); | ||
+ | $(this).find("span").show(); | ||
+ | } , function() { //on hover out... | ||
+ | $(this).css({ 'background' : 'none'}); | ||
+ | $(this).find("span").hide(); | ||
+ | }); | ||
+ | |||
+ | }); | ||
+ | </script> | ||
- | + | <style> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | /* Menu from http://www.sohtanaka.com/web-design/examples/horizontal-subnav/ */ | |
- | + | #tab_nav { | |
- | + | position: absolute; | |
- | + | z-index: 1000; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | position: | + | |
- | + | ||
} | } | ||
+ | ul#topnav { | ||
+ | float: left; | ||
+ | width: 965px; | ||
+ | list-style: none; | ||
+ | position: relative; | ||
+ | background: url("https://static.igem.org/mediawiki/2010/d/dd/Valencia_navbar_stretch.gif") repeat-x; | ||
+ | font-family: Arial, Helvetica, Sans-Serif; | ||
+ | margin-left: 0px; | ||
+ | margin-top: 0px; | ||
+ | font-size: 14px; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
+ | ul#topnav li { | ||
+ | float: left; | ||
+ | border-right: 1px solid #555; | ||
+ | font-family: Arial, Helvetica, Sans-Serif; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
- | ul# | + | ul#topnav li a { |
+ | padding: 10px 15px; | ||
+ | font-weight: bold; | ||
+ | display: block; | ||
+ | color: #f0f0f0; | ||
text-decoration: none; | text-decoration: none; | ||
- | + | font-family: Arial, Helvetica, Sans-Serif; | |
- | + | ||
} | } | ||
- | # | + | ul#topnav li a:hover { |
+ | text-decoration: underline; | ||
+ | } | ||
+ | ul#topnav li:hover { background: #b5cc86 url("https://static.igem.org/mediawiki/2010/0/03/Valencia_navbar_active.gif") repeat-x; } | ||
+ | ul#topnav li span { | ||
+ | float: left; | ||
+ | padding: 10px 0; | ||
position: absolute; | position: absolute; | ||
- | left: 0; | + | left: 0; top: 34px; |
- | + | display: none; | |
- | + | width:850px; | |
- | + | background: #ef8639; | |
- | + | color: #fff; | |
- | + | -moz-border-radius-bottomright: 5px; | |
- | + | -khtml-border-radius-bottomright: 5px; | |
- | + | -webkit-border-bottom-right-radius: 5px; | |
- | + | -moz-border-radius-bottomleft: 5px; | |
- | + | -khtml-border-radius-bottomleft: 5px; | |
- | + | -webkit-border-bottom-left-radius: 5px; | |
- | + | ||
- | + | ||
} | } | ||
- | ul# | + | ul#topnav li:hover span { display: block; } |
- | ul# | + | ul#topnav li span a { display: inline; font-weight; normal; } |
- | + | ul#topnav li span a:hover {text-decoration: underline;} | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ul# | + | |
- | + | ||
- | + | ||
- | + | ||
</style> | </style> | ||
+ | <ul id="topnav"> | ||
+ | <li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich">Home</a> | ||
+ | |||
+ | </li> | ||
+ | <li> | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Team">Team</a> | ||
+ | <!--Subnav Starts Here--> | ||
+ | <span> | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Team"> Students</a> | | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Our_advisors"> Advisors</a> | | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Our_Sponsors"> Acknowledgements</a> | | ||
+ | </span> | ||
+ | <!--Subnav Ends Here--> | ||
+ | </li> | ||
+ | <li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Project"> Project</a> | ||
+ | <!--Subnav Starts Here--> | ||
+ | <span> | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Project"> Project Overview</a> | | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Nittygritty-algae"> Algae</a> | | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Nittygritty-moss"> Moss</a> | | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Methods"> Methods</a> | | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Safety"> Lab Safety</a> | | ||
+ | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Notebook"> Lab Journal</a> | | ||
+ | </span> | ||
+ | <!--Subnav Ends Here--> | ||
+ | </li> | ||
+ | <li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Registryoverview">Results</a> | ||
- | < | + | <!--Subnav Starts Here--> |
- | + | <span> | |
- | + | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Registryoverview"> Registry Overview</a>| | |
- | + | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/data"> Data</a>| | |
- | + | </span> | |
- | + | <!--Subnav Ends Here--> | |
- | + | </li> | |
- | + | <li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Human_practices/Interviews"> Human Practice</a> | |
- | + | <!--Subnav Starts Here--> | |
- | + | <span> | |
- | + | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Human_practices/Interviews"> Interviews</a> | | |
- | + | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Human_practices"> Outreach</a> | | |
- | + | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/UKConference"> UK Team Meetup</a> | | |
- | + | <a href="https://2011.igem.org/Team:UEA-JIC_Norwich/Human_practices/Media"> Media</a> | | |
- | + | </span> | |
- | + | <!--Subnav Ends Here--> | |
- | + | </li> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | <li><a href="https://2011.igem.org/Team:UEA-JIC_Norwich/ | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
</ul> | </ul> | ||
- | + | <br> | |
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</html> | </html> |
Revision as of 14:58, 17 September 2011
UNIVERSITY OF EAST ANGLIA-JOHN INNES CENTRE