Team:KULeuven/Tools/Navigation Bar
From 2008.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | |||
<html> | <html> | ||
- | |||
- | |||
<style type="text/css"> | <style type="text/css"> | ||
- | + | #nav, #nav ul { | |
- | + | position: relative; | |
- | + | margin: 0 auto; /* purpose: allow centering ul table */ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
padding: 0; | padding: 0; | ||
- | + | display: table /* purpose: ul doesn't stretch width 100% */ | |
+ | } | ||
- | # | + | #nav li { |
- | { | + | display: table-cell; /* purpose: li behaves like table-cell */ |
- | + | position: relative; /* purpose: non-overlap li elements in ul */ | |
- | list-style: none; | + | list-style: none; /* purpose: remove default html list-style */ |
- | + | } | |
- | # | + | #nav li a { |
- | { display: block; | + | display: block; /* purpose: non-overlap div on a */ |
- | margin: 0 2px 0 0; | + | margin: 0 2px 0 0; /* purpose: spacing main menu items */ |
padding: 4px 20px; | padding: 4px 20px; | ||
- | + | background-color: #003E81; | |
- | background: #003E81; | + | |
color: #FFF; | color: #FFF; | ||
- | |||
text-align: center; | text-align: center; | ||
- | text-decoration: none} | + | text-decoration: none; /* purpose: remove underline from a */ |
+ | font: bold 13px arial; | ||
+ | } | ||
- | # | + | #nav li a:hover { |
- | { background: #99CCFF} | + | background-color: #99CCFF; |
+ | } | ||
- | # | + | #nav div { |
- | + | position: absolute; /* purpose: li of div doesn't spread out */ | |
- | + | display: none; | |
- | + | width: 10em; | |
- | + | ||
- | + | ||
opacity: 0.8; | opacity: 0.8; | ||
filter: alpha(opacity=80); | filter: alpha(opacity=80); | ||
- | border: 1px solid #5970B2} | + | border: 1px solid #5970B2; |
+ | background: #EAEBD8; | ||
+ | } | ||
- | # | + | #nav span a, #nav div a { |
- | + | position: relative; | |
- | display: block; | + | display: block; /* purpose: a's in div have same width */ |
margin: 0; | margin: 0; | ||
padding: 5px 10px; | padding: 5px 10px; | ||
- | |||
- | |||
text-align: left; | text-align: left; | ||
- | + | font: 11px arial; | |
- | background: # | + | } |
- | color: # | + | |
- | + | #nav span a:hover, #nav div a:hover { | |
+ | background-color: #99CCFF; | ||
+ | color: #000; | ||
+ | } | ||
- | # | + | #nav span div { |
- | + | position: relative; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
margin: 0; | margin: 0; | ||
- | + | border: none; /* purpose: reset border to none */ | |
- | + | border-top: 1px solid #5970B2; /* purpose: add a seperator */ | |
+ | border-bottom: 1px solid #5970B2; /* purpose: add a seperator */ | ||
+ | opacity: 1.0; /* purpose: opacity already 0.8 by #nav div */ | ||
+ | filter: alpha(opacity=100); /* purpose: opacity already 80 by #nav div */ | ||
+ | } | ||
+ | |||
+ | #nav span div a { | ||
+ | text-indent: 10px; | ||
+ | } | ||
+ | |||
+ | #nav span div span div a { | ||
+ | text-indent: 20px; | ||
+ | } | ||
- | # | + | #nav .expand { |
- | { | + | background-image: url('https://static.igem.org/mediawiki/2008/e/ef/Icon-expand.png'); |
- | + | background-repeat: no-repeat; | |
- | + | background-position: 95% 50%; | |
- | + | } | |
- | + | ||
- | + | #nav .collapse { | |
- | + | background-image: url('https://static.igem.org/mediawiki/2008/c/cd/Icon-collapse.png'); | |
+ | background-repeat: no-repeat; | ||
+ | background-position: 95% 50%; | ||
+ | } | ||
</style> | </style> | ||
- | |||
- | + | <script type="text/javascript" src="http://avdmeers.web44.net/scripts/jquery.js"></script> | |
- | + | ||
- | <script type="text/javascript" | + | |
- | // | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </script | + | |
- | + | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | function ddmsie() { | |
- | + | $("#nav ul").css('display', 'inline-block'); | |
- | + | $("#nav li").css('display', 'inline'); | |
- | + | $("#nav a").css('display', 'inline-block'); | |
- | + | $("#nav a").hover(function () {$(this).css('background-color', '#99CCFF')}, | |
- | function | + | function () {$(this).css('background-color', '#003E81')}); |
- | { | + | $("#nav div a").css('display', 'block'); |
- | + | $("#nav div").css('left', '0'); | |
- | + | $("#nav div").css('top', '100%'); | |
- | + | $("#nav span div").css('top', '0'); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | ||
- | function | + | function ddnav() { |
- | { | + | $("#nav li").hover( |
- | + | function () { | |
- | } | + | $(this).find("div:first").css('display', 'inline');}, |
- | + | function () { | |
- | + | $(this).find("div:first").css('display', 'none');} | |
- | + | ); | |
- | { | + | |
- | + | $("#nav span > a").toggle( | |
- | } | + | function () { |
- | + | $(this).removeClass("#nav expand").addClass("#nav collapse"); | |
- | + | $(this).css('background-color', '#99AAFF'); | |
- | + | $(this).parent().find("div:first").css('display', 'block');}, | |
- | { | + | function () { |
- | + | $(this).removeClass("#nav collapse").addClass("#nav expand"); | |
- | + | $(this).hover( | |
- | + | function () { | |
- | + | $(this).css('background-color', '#99CCFF');}, | |
- | + | function () { | |
+ | $(this).css('background-color', '#003E81');} | ||
+ | ); | ||
+ | $(this).parent().find("div:first").css('display', 'none'); | ||
+ | } | ||
+ | ).addClass("#nav expand"); | ||
} | } | ||
- | + | $(function () { | |
- | + | if(jQuery.browser.msie) ddmsie(); | |
- | + | ddnav(); | |
+ | ddicon(); | ||
+ | }); | ||
</script> | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
+ | <div align="center" id="nav"> | ||
+ | <ul> | ||
+ | <li> | ||
+ | <a>Home</a> | ||
</li> | </li> | ||
- | < | + | <li> |
- | + | <a>The Team</a> | |
- | <div | + | <div> |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Team/LabsandGroups">Research Labs and Groups</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Team/Students">Students</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Team/Instructors">Instructors</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Team/Advisors">Advisors</a> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
- | |||
</li> | </li> | ||
- | < | + | <li> |
- | + | <a>Road Map</a> | |
- | <div | + | <div> |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Interesting_Reads">Interesting Reads</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Brainstorm">Brainstorm</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Discussion">Discussion</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/SummerHolidays">Summer Holidays</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Concreties">Concrete Ideas</a> | |
- | + | </div> | |
- | + | ||
</li> | </li> | ||
- | < | + | <li> |
- | + | <a>The Project</a> | |
- | <div | + | <div> |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Project/Synthetic Biology">Synthetic Biology</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Project">Summary</a> | |
- | + | <span> | |
- | + | <a>Components</a> | |
- | + | <div> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Project/Input">Input</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Project/Output">Output</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Project/Filter">Filter</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Project/Inverter">Inverter</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Project/Reset">Reset</a> | |
+ | <a href="https://2008.igem.org/Team:KULeuven/Project/CellDeath">Cell Death</a> | ||
+ | <a href="https://2008.igem.org/Team:KULeuven/Project/Memory">Memory</a> | ||
+ | </div> | ||
+ | </span> | ||
+ | <a href="https://2008.igem.org/Team:KULeuven/Literature">Literature</a> | ||
</div> | </div> | ||
- | |||
</li> | </li> | ||
- | < | + | <li> |
- | + | <a>Parts Submitted to the Registry</a> | |
- | <div | + | <div> |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Parts">Listing</a> | |
- | + | <a href="http://partsregistry.org/cgi/partsdb/pgroup.cgi?pgroup=iGEM2008&group=KULeuven">Sandbox</a> | |
</div> | </div> | ||
- | |||
</li> | </li> | ||
- | < | + | <li> |
- | + | <a>Modeling</a> | |
- | + | <div> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Model/Overview">Overview</a> | |
- | + | <span> | |
- | + | <a>Components</a> | |
- | + | <div> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Model/Input">Input</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Model/Output">Output</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Model/Filter">Filter</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Model/Inverter">Inverter</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Model/Reset">Reset</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Model/CellDeath">Cell Death</a> | |
+ | <a href="https://2008.igem.org/Team:KULeuven/Model/Memory">Memory</a> | ||
+ | </div> | ||
+ | </span> | ||
+ | <a href="https://2008.igem.org/Team:KULeuven/Model/FullModel">Full Model</a> | ||
+ | <a href="https://2008.igem.org/Team:KULeuven/Model/KineticConstants">Kinetic Constants</a> | ||
</div> | </div> | ||
- | |||
</li> | </li> | ||
- | < | + | <li> |
- | + | <a>Notebook</a> | |
- | <div | + | <div> |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Meeting_Calendar">Calendar</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Meeting Reports">Reports</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Freezer">Freezer</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Primers">Primers</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Tools">Tools</a> | |
- | + | <a href="https://2008.igem.org/Team:KULeuven/Press">Press</a> | |
</div> | </div> | ||
- | |||
</li> | </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
- | |||
- | |||
</html> | </html> | ||
[[Image:kulbanner.jpg|960px]] | [[Image:kulbanner.jpg|960px]] |
Revision as of 11:59, 30 July 2008