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.split( "\/"); | result=re.split( "\/"); | ||
- | alert( | + | alert(re); |
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:15, 10 October 2010