Template:UCSF/subnav/Hello/BBB/AAA

From 2010.igem.org

(Difference between revisions)
Line 100: Line 100:
var PageURL = document.URL;
var PageURL = document.URL;
var reg = /http:\/\/2010\.igem\.org\/Template:UCSF(.*)/;
var reg = /http:\/\/2010\.igem\.org\/Template:UCSF(.*)/;
-
var result =  reg.exec(PageURL);
+
var re =  reg.exec(PageURL);
 +
var  result=new Array();
 +
result=re.split( "\/");
alert(result);
alert(result);
var subnav=document.getElementById('sub-navigation');
var subnav=document.getElementById('sub-navigation');

Revision as of 02:15, 10 October 2010