Team:HKU-Hong Kong/Templates/Header
From 2011.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
var last = path.split("/"); | var last = path.split("/"); | ||
if ( last[1] ) { | if ( last[1] ) { | ||
- | $('#headover ul li a[href*="' + last[1] + '"]').addClass("curlink").css("color","# | + | $('#headover ul li a[href*="' + last[1] + '"]').addClass("curlink").css("color","#01DF01"); |
} | } | ||
else { | else { | ||
- | $('#headover ul li a[href$="' + path + '"]').addClass("curlink").css("color","# | + | $('#headover ul li a[href$="' + path + '"]').addClass("curlink").css("color","#01DF01"); |
} | } | ||
}); | }); | ||
Line 38: | Line 38: | ||
$('.listmain').mouseover(function(){ | $('.listmain').mouseover(function(){ | ||
$('.listmain').not('.curlink').css("color","#dddddd"); | $('.listmain').not('.curlink').css("color","#dddddd"); | ||
- | $(this).css("color","# | + | $(this).css("color","#01DF01"); |
}); | }); | ||
Revision as of 05:50, 1 August 2011