Team:ETH Zurich/Templates/TestHeader
From 2012.igem.org
(Difference between revisions)
m |
|||
Line 36: | Line 36: | ||
/* menu styles */ | /* menu styles */ | ||
- | # | + | #eth_nav ul |
{ margin: 0; | { margin: 0; | ||
padding: 0; | padding: 0; | ||
} | } | ||
- | # | + | #eth_nav ul li |
{ float: left; | { float: left; | ||
list-style: none; | list-style: none; | ||
Line 47: | Line 47: | ||
} | } | ||
- | # | + | #eth_nav ul li a |
{ display: block; | { display: block; | ||
background: #324143; | background: #324143; | ||
Line 53: | Line 53: | ||
text-decoration: none; | text-decoration: none; | ||
border-right: 1px solid white; | border-right: 1px solid white; | ||
- | width: | + | width: 80px; |
color: #EAFFED; | color: #EAFFED; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
- | # | + | #eth_nav ul li a:hover |
{ background: #24313C; | { background: #24313C; | ||
} | } | ||
- | # | + | #eth_nav ul li ul |
{ margin: 0; | { margin: 0; | ||
padding: 0; | padding: 0; | ||
Line 70: | Line 70: | ||
} | } | ||
- | # | + | #eth_nav ul li ul li |
{ float: none; | { float: none; | ||
display: inline; | display: inline; | ||
} | } | ||
- | # | + | #eth_nav ul li ul li a |
{ width: auto; | { width: auto; | ||
background: #99CC99; | background: #99CC99; | ||
Line 81: | Line 81: | ||
} | } | ||
- | # | + | #eth_nav ul li ul li a:hover |
{ background: #009966; | { background: #009966; | ||
} | } | ||
Line 94: | Line 94: | ||
#eth_topnav { | #eth_topnav { | ||
width: 100%; | width: 100%; | ||
- | background: # | + | background: #727272; |
font-size: 9px; | font-size: 9px; | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
Line 100: | Line 100: | ||
#eth_topnav a | #eth_topnav a | ||
- | { | + | { text-decoration: none; |
- | + | ||
color: #EAFFED; | color: #EAFFED; | ||
margin-left: 3px; | margin-left: 3px; | ||
Line 139: | Line 138: | ||
</style> | </style> | ||
- | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
var timeout = 500; | var timeout = 500; | ||
Line 145: | Line 143: | ||
var ddmenuitem = 0; | var ddmenuitem = 0; | ||
- | function | + | function eth_nav_open() |
- | { | + | { eth_nav_canceltimer(); |
- | + | eth_nav_close(); | |
ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');} | ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');} | ||
- | function | + | function eth_nav_close() |
{ if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');} | { if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');} | ||
- | function | + | function eth_nav_timer() |
- | { closetimer = window.setTimeout( | + | { closetimer = window.setTimeout(eth_nav_close, timeout);} |
- | function | + | function eth_nav_canceltimer() |
{ if(closetimer) | { if(closetimer) | ||
{ window.clearTimeout(closetimer); | { window.clearTimeout(closetimer); | ||
Line 162: | Line 160: | ||
$(document).ready(function() | $(document).ready(function() | ||
- | { $('# | + | { $('#eth_nav > ul > li').bind('mouseover', eth_nav_open); |
- | $('# | + | $('#eth_nav > ul > li').bind('mouseout', eth_nav_timer);}); |
- | document.onclick = | + | document.onclick = eth_nav_close; |
</script> | </script> | ||
</html> | </html> | ||
- | |||
<div id="eth_page"> | <div id="eth_page"> | ||
<div id="eth_topnav"> | <div id="eth_topnav"> | ||
- | <div id="eth_topnav_left"> | + | <div id="eth_topnav_left"></div> |
- | <div id="eth_topnav_right"> | + | <div id="eth_topnav_right"></div><div class="clear"> </div> |
</div> | </div> | ||
<div id="eth_header">[[Image:eth_page_header.png|link=https://2012.igem.org/Main_Page]]</div> | <div id="eth_header">[[Image:eth_page_header.png|link=https://2012.igem.org/Main_Page]]</div> | ||
<div id="eth_menu"> | <div id="eth_menu"> | ||
- | < | + | <div id="eth_nav"> |
- | + | * [[Team:ETH_Zurich|Home]] | |
- | + | * [[Team:ETH_Zurich/Project|Project]] | |
- | + | ** [[Project|Overview]] | |
- | + | ** [[Circuit Design]] | |
- | + | * [[Parts]] | |
- | + | ** [[Team:ETH_Zurich/Parts|Parts Submitted to the Registry]] | |
- | + | ** [[Team:ETH_Zurich/UsedParts|Parts used from the Registry]] | |
- | + | * [[Team:ETH_Zurich/Modeling|Modeling]] | |
- | + | * [[Team:ETH_Zurich/Notebook|Notebook]] | |
- | + | * [[Team:ETH_Zurich/Safety|Safety]] | |
- | + | * [[Team:ETH_Zurich/Attributions|Attributions]] | |
- | + | * [[Team:ETH_Zurich/Team|Team]] | |
- | + | ** [https://igem.org/Team.cgi?year=2012&team_name=ETH_Zurich Official Team Profile] | |
- | + | * [[WIKI]] | |
- | + | ** [{{fullurl:Special:UserLogin|returnto={{PAGENAMEE}}}} Login] | |
- | + | ** [{{fullurl:{{PAGENAME}}}} Page] | |
- | + | ** [{{fullurl:{{PAGENAME}}|action=edit}} Edit] | |
- | + | ** [{{fullurl:{{PAGENAME}}|action=history}} History] | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | <div class="clear"></div> | |
- | + | </div> | |
- | <div class="clear"> </div> | + | |
</div> | </div> | ||
- | |||
<div id="eth_content"> | <div id="eth_content"> | ||
+ | |||
+ | *test | ||
+ | |||
+ | ** testtest |
Revision as of 13:33, 5 September 2012