RemoveHomeTab

By Spider Last update Oct 22, 2008 — Installed 84 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 2 posts, 2 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Avindra V.G. Scriptwright

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.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel