andymc1989
08-28-2006, 09:26 PM
I'm trying to add a script to my site which will hide and display a DIV. I have managed to get it so that it can be removed, but I'm struggling to get it so it can be re added.
www.blueskullofdeath.com
It is the 2nd box under the banner.
Script so far...
function RemoveNode()
{
d = document.body;
d_nested = document.getElementById("indexheader");
throwaway_node = d.removeChild(d_nested);
}
HTML
<div id="removeindexheader"><a onclick="RemoveNode()">Remove </a></div>
If you could help me so you can hide and display the division. It would be much appreciated. Thanks.
www.blueskullofdeath.com
It is the 2nd box under the banner.
Script so far...
function RemoveNode()
{
d = document.body;
d_nested = document.getElementById("indexheader");
throwaway_node = d.removeChild(d_nested);
}
HTML
<div id="removeindexheader"><a onclick="RemoveNode()">Remove </a></div>
If you could help me so you can hide and display the division. It would be much appreciated. Thanks.