Thread: pop up box
View Single Post
Old 03-09-2008, 10:50 AM   #10 (permalink)
freenity
The Acquainted
 
freenity's Avatar
 
Join Date: Feb 2008
Posts: 119
Thanks: 17
freenity is on a distinguished road
Default

Quote:
Originally Posted by DeMo View Post
Why don't you use JavaScript? It's a lot easier...
HTML Code:
<script type="text/javascript">
function show() {
  document.getElementById("popup").style.display = "block";
}

function hide() {
  document.getElementById("popup").style.display = "none";
}
</script>


<div id="btn1" onmouseover="show()" onmouseout="hide()">
  <div id="popup">content</div>
</div>
thanks!
So there is no way to detect the mouseout event only with css??
__________________
http://feudal-times.net - My PBB Game
http://gwphp.feudal-times.net - My Blog "Gaming With PHP"
freenity is offline  
Reply With Quote