Template:UCSF/Header

From 2010.igem.org

(Difference between revisions)
Line 82: Line 82:
for (var i=0;i<toBeTOCced.length;i++) {
for (var i=0;i<toBeTOCced.length;i++) {
var tmp = document.createElement('a');
var tmp = document.createElement('a');
-
var result = toBeTOCced[i].lastChild.innerHTML;
+
                var temp = toBeTOCced[i];
 +
                while(temp.lastChild!=null){temp=temp.lastChild;}
 +
                var result = temp.innerHTML;
tmp.innerHTML = result;
tmp.innerHTML = result;
tmp.className = 'page';
tmp.className = 'page';

Revision as of 07:22, 10 October 2010