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');
-
alert(toBeTOCced[i].firstChild);
+
alert(toBeTOCced[i].lastChild.innerHTML);
tmp.innerHTML = toBeTOCced[i].firstChild.innerHTML;//result[1];
tmp.innerHTML = toBeTOCced[i].firstChild.innerHTML;//result[1];
tmp.className = 'page';
tmp.className = 'page';

Revision as of 07:11, 10 October 2010