Template:UCSF/Header

From 2010.igem.org

(Difference between revisions)
Line 83: Line 83:
var tmp = document.createElement('a');
var tmp = document.createElement('a');
                 var temp = toBeTOCced[i];
                 var temp = toBeTOCced[i];
-
                 while(temp.lastChild!=null){temp=temp.lastChild;}
+
                 temp= temp.lastChild;
-
                 var result = temp.value;
+
                if(temp.lastChild.nodeName=="B"){temp=temp.lastChild;}
-
                 alert(result);
+
                 var result = temp.nodeValue;
 +
                 //alert(result);
tmp.innerHTML = result;
tmp.innerHTML = result;
tmp.className = 'page';
tmp.className = 'page';

Revision as of 07:50, 10 October 2010