Team:Imperial College London/Templates/Header
From 2010.igem.org
(Difference between revisions)
Line 9: | Line 9: | ||
var path = location.pathname.substring(1); | var path = location.pathname.substring(1); | ||
var last = path.split("/"); | var last = path.split("/"); | ||
- | if ( last[ | + | if ( last[1] ) { |
- | $('#headover ul li a[href*="' + last[ | + | $('#headover ul li a[href*="' + last[1] + '"]').addClass("curlink").css("color","#ea8828"); |
} | } | ||
else { | else { | ||
$('#headover ul li a[href$="' + path + '"]').addClass("curlink").css("color","#ea8828"); | $('#headover ul li a[href$="' + path + '"]').addClass("curlink").css("color","#ea8828"); | ||
} | } | ||
- | |||
}); | }); | ||
Revision as of 14:17, 18 October 2010