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