Thread: Resolved Making a <div> disappear
View Single Post
Old 02-05-2013, 09:09 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
Any time you want to change your page 9 out of ten times it's done with javascript. Advise you to start studying. Js is used below
Code:
<body>
<div id="container">
    <div id="bot1"></div>
	<div id="top1" onclick="goAway();"></div>
</div>
<script type="text/javascript">
function goAway()
{
	document.getElementById("top1").style.display = "none";
}
</script>
</body>
</html>
Just replace your code with this from the body tag down.

Last edited by sunfighter; 02-05-2013 at 09:12 PM..
sunfighter is offline   Reply With Quote