Template:Team:Washington/Templates/Top
From 2012.igem.org
(Difference between revisions)
Housekeeper (Talk | contribs) |
Housekeeper (Talk | contribs) |
||
Line 184: | Line 184: | ||
} | } | ||
- | #igemuwmenu a. | + | #igemuwmenu a.selected { |
background-color: #000000; | background-color: #000000; | ||
} | } | ||
Line 268: | Line 268: | ||
#igemuwmenu ul a:hover { | #igemuwmenu ul a:hover { | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
background-color: #785D84; | background-color: #785D84; | ||
background-image: -moz-linear-gradient(#B6A0BA, #785D84); | background-image: -moz-linear-gradient(#B6A0BA, #785D84); | ||
Line 588: | Line 578: | ||
// selection | // selection | ||
- | + | var path = location.pathname; | |
- | var | + | var home = "/"; |
- | + | $("a[href='" + [ path ] + "']").parents("li").each(function() { | |
- | $( | + | $(this).addClass("selected"); |
- | }); | + | }); |
</script> | </script> |