Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
A lot of repetition in here... it could be better as: (function() {
for(i=0;i<arguments.length;i++) {
var cur=document.getElementById(arguments[i]);
if (cur) cur.parentNode.removeChild(cur)
}
})('section0_contents','col1','bottom_nav','full_nav');
furthermore....
h=document.getElementById("col1");
h.parentNode.removeChild(h)
does the trick. |