Template:UCSF/subnav/Hello/BBB/AAA
From 2010.igem.org
(Difference between revisions)
Line 101: | Line 101: | ||
var reg = /http:\/\/2010\.igem\.org\/Template:UCSF(.*)/; | var reg = /http:\/\/2010\.igem\.org\/Template:UCSF(.*)/; | ||
var re = reg.exec(PageURL); | var re = reg.exec(PageURL); | ||
- | |||
var result; | var result; | ||
result=re[1].split("\/"); | result=re[1].split("\/"); | ||
+ | alert(result); | ||
var subnav=document.getElementById('sub-navigation'); | var subnav=document.getElementById('sub-navigation'); | ||
for (var i=1;i<result.length;i++){ | for (var i=1;i<result.length;i++){ |
Revision as of 02:17, 10 October 2010