I am trying to make a div disappear when check box is checked, but am unable to get the block to go invisible. I have tried using the Visibility property in css and (code below) the display property, neither of which make the div invisible.
I know the mouse over events work, as I have added a test to change the colour in the box on mouseover, and this occurs. It just seems to be ignoring the display command (or the Visibility - when I was using that).
Any suggestions, please??
<SCRIPT language="JavaScript" type="text/javascript">
function hide()
{
var obj=document.getElementById("Name").style
obj.Display='None';
}
function show()
{
var obj=document.getElementById("Name").style
obj.Display='in-line';
}
</SCRIPT>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY>
<DIV id="Name" class="paper" onMouseOver="hide()" onMouseOut="show()">
Hello
</DIV>
</BODY>
</HTML>
I know the mouse over events work, as I have added a test to change the colour in the box on mouseover, and this occurs. It just seems to be ignoring the display command (or the Visibility - when I was using that).
Any suggestions, please??
<SCRIPT language="JavaScript" type="text/javascript">
function hide()
{
var obj=document.getElementById("Name").style
obj.Display='None';
}
function show()
{
var obj=document.getElementById("Name").style
obj.Display='in-line';
}
</SCRIPT>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY>
<DIV id="Name" class="paper" onMouseOver="hide()" onMouseOut="show()">
Hello
</DIV>
</BODY>
</HTML>