Template:UCSF/Header

From 2010.igem.org

(Difference between revisions)
Line 85: Line 85:
                 var str = toBeTOCced[i].innerHTML;
                 var str = toBeTOCced[i].innerHTML;
                 var result =  reg.exec(str);
                 var result =  reg.exec(str);
 +
                alert(result);
                 if(result.length==3){tmp.innerHTML = result[2];}
                 if(result.length==3){tmp.innerHTML = result[2];}
else{tmp.innerHTML = result[1];}
else{tmp.innerHTML = result[1];}

Revision as of 07:00, 10 October 2010