frodo444
06-07-2003, 02:50 AM
I'm trying to make a section of code within a <div> tag appear when I click or MouseOver a button. I have something like this for my code.
<html>
<head>
<style ...>
#hd {...;visibility: hidden}
</style>
</head>
<body>
...
<input type="button" onMouseOver="document.HiddenDiv.style.visibility='visible'" onMouseOut="document.HiddenDiv.style.visibility='hidden'">
<div id="hd" name="HiddenDiv">
...
</div>
When I run it in either Netscape7 or IE5 I get a message saying that document.HiddenDiv has no properties, which I assume means that JS isn't recognizing it as the name of an HTML tag. I was wondering how I might go about doing this, because I am completely baffled and have tried everything else.
Thanks,
Eric
<html>
<head>
<style ...>
#hd {...;visibility: hidden}
</style>
</head>
<body>
...
<input type="button" onMouseOver="document.HiddenDiv.style.visibility='visible'" onMouseOut="document.HiddenDiv.style.visibility='hidden'">
<div id="hd" name="HiddenDiv">
...
</div>
When I run it in either Netscape7 or IE5 I get a message saying that document.HiddenDiv has no properties, which I assume means that JS isn't recognizing it as the name of an HTML tag. I was wondering how I might go about doing this, because I am completely baffled and have tried everything else.
Thanks,
Eric