Template:Team:HKU-HKBU/script.js
From 2009.igem.org
(Difference between revisions)
YinanZhang (Talk | contribs) |
YinanZhang (Talk | contribs) |
||
Line 82: | Line 82: | ||
var pageName = majorTabNames[i].replace(/ /g, "_").toLowerCase(); | var pageName = majorTabNames[i].replace(/ /g, "_").toLowerCase(); | ||
document.write("\ | document.write("\ | ||
- | <div class=\"linktab" + ((document.URL.indexOf(pageName) != -1) ? "sel" : "") + "\">\ | + | <div class=\"linktab" + ((document.URL.indexOf(pageName) != -1 || i == 0 && document.URL == "https://2009.igem.org/Team:HKU-HKBU") ? "sel" : "") + "\">\ |
<a href=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + ".html\">" + majorTabNames[i].toUpperCase() + "</a>\ | <a href=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + ".html\">" + majorTabNames[i].toUpperCase() + "</a>\ | ||
</div>"); | </div>"); |
Revision as of 12:35, 8 October 2009