Template:ETHZ Basel10 css
From 2010.igem.org
(Difference between revisions)
(16 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
- | <script type="text/javascript" src= | + | <script type="text/javascript"> |
+ | |||
+ | var _gaq = _gaq || []; | ||
+ | _gaq.push(['_setAccount', 'UA-19289516-1']); | ||
+ | _gaq.push(['_trackPageview']); | ||
+ | |||
+ | (function() { | ||
+ | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
+ | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
+ | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
+ | })(); | ||
+ | |||
+ | function getURL(subhrefString) | ||
+ | { | ||
+ | var arr_sub = subhrefString.split('#'); | ||
+ | var hrefString = arr_sub[0]; | ||
+ | var arr = hrefString[0].split('/'); | ||
+ | return (arr.length<2) ? hrefString : arr[arr.length-2].toLowerCase() + arr[arr.length-1].toLowerCase(); | ||
+ | } | ||
+ | |||
+ | function setCurrentLink(arr, crtPage) | ||
+ | { | ||
+ | for (var i=0; i<arr.length; i++) | ||
+ | { | ||
+ | if(getURL(arr[i].href) == crtPage) | ||
+ | { | ||
+ | if (arr[i].parentNode.tagName != "DIV") | ||
+ | { | ||
+ | arr[i].className = "current"; | ||
+ | arr[i].parentNode.className = "current"; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function setPage() | ||
+ | { | ||
+ | hrefString = document.location.href ? document.location.href : document.location; | ||
+ | |||
+ | if (document.getElementById("subnavigation")!=null) | ||
+ | setCurrentLink(document.getElementById("subnavigation").getElementsByTagName("a"), getURL(hrefString)); | ||
+ | } | ||
+ | |||
+ | </script> | ||
<style type="text/css"> | <style type="text/css"> | ||
/* | /* | ||
Line 181: | Line 224: | ||
} | } | ||
ul#simple-menu li a.current, ul#simple-menu li a.current:hover{ | ul#simple-menu li a.current, ul#simple-menu li a.current:hover{ | ||
+ | color: #FFFFFF; | ||
background:#073515; | background:#073515; | ||
border-bottom: #073515 1px solid; | border-bottom: #073515 1px solid; | ||
} | } | ||
- | ul#simple-menu li a. | + | ul#simple-menu li a.introduction{ |
background:#6BD37A; | background:#6BD37A; | ||
} | } | ||
- | ul#simple-menu li a. | + | ul#simple-menu li a.introduction_current, ul#simple-menu li a.introduction_current:hover{ |
+ | color: #FFFFFF; | ||
background:#6BD37A; | background:#6BD37A; | ||
border-bottom: #6BD37A 1px solid; | border-bottom: #6BD37A 1px solid; | ||
Line 195: | Line 240: | ||
} | } | ||
ul#simple-menu li a.biology_current, ul#simple-menu li a.biology_current:hover{ | ul#simple-menu li a.biology_current, ul#simple-menu li a.biology_current:hover{ | ||
+ | color: #FFFFFF; | ||
background:#41BD54; | background:#41BD54; | ||
border-bottom: #41BD54 1px solid; | border-bottom: #41BD54 1px solid; | ||
Line 202: | Line 248: | ||
} | } | ||
ul#simple-menu li a.modeling_current, ul#simple-menu li a.modeling_current:hover{ | ul#simple-menu li a.modeling_current, ul#simple-menu li a.modeling_current:hover{ | ||
+ | color: #FFFFFF; | ||
background:#26913B; | background:#26913B; | ||
border-bottom: #26913B 1px solid; | border-bottom: #26913B 1px solid; | ||
Line 209: | Line 256: | ||
} | } | ||
ul#simple-menu li a.information_current, ul#simple-menu li a.information_current:hover{ | ul#simple-menu li a.information_current, ul#simple-menu li a.information_current:hover{ | ||
+ | color: #FFFFFF; | ||
background:#306B3C; | background:#306B3C; | ||
border-bottom: #306B3C 1px solid; | border-bottom: #306B3C 1px solid; | ||
} | } | ||
- | ul#simple-menu li a. | + | ul#simple-menu li a.achievements{ |
background:#0E491F; | background:#0E491F; | ||
} | } | ||
- | ul#simple-menu li a. | + | ul#simple-menu li a.achievements_current, ul#simple-menu li a.achievements_current:hover{ |
+ | color: #FFFFFF; | ||
background:#0E491F; | background:#0E491F; | ||
border-bottom: #0E491F 1px solid; | border-bottom: #0E491F 1px solid; | ||
+ | } | ||
+ | ul#simple-menu li a.team{ | ||
+ | background:#073515; | ||
+ | } | ||
+ | ul#simple-menu li a.team_current, ul#simple-menu li a.team_current:hover{ | ||
+ | color: #FFFFFF; | ||
+ | background:#073515; | ||
+ | border-bottom: #073515 1px solid; | ||
} | } | ||
ul#simple-menu li a.right{ | ul#simple-menu li a.right{ | ||
Line 223: | Line 280: | ||
} | } | ||
ul#simple-menu li a:hover{ | ul#simple-menu li a:hover{ | ||
+ | color: #000000; | ||
text-decoration: underline; | text-decoration: underline; | ||
background:#B6F3BF; | background:#B6F3BF; | ||
Line 236: | Line 294: | ||
border-bottom: #000000 1px solid; | border-bottom: #000000 1px solid; | ||
} | } | ||
- | #subnavigation. | + | #subnavigation.introduction{ |
background:#6BD37A; | background:#6BD37A; | ||
} | } | ||
Line 248: | Line 306: | ||
background:#306B3C; | background:#306B3C; | ||
} | } | ||
- | #subnavigation. | + | #subnavigation.achievements{ |
background:#0E491F; | background:#0E491F; | ||
+ | } | ||
+ | #subnavigation.team{ | ||
+ | background:#073515; | ||
} | } | ||
ul#sub-menu{ | ul#sub-menu{ |
Latest revision as of 12:40, 24 October 2010