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

ok, I guess some code is needed here:

PHP Code:
<style>

#btn1
{
    
width300px;
    
height50px;
    
positionabsolute;
    
top100px;
    
left50px;
    
background#eeeeee;
    
z-index22;
}

#popup
{
    
width200px;
    
height200px;
    
z-index999;
    
background#ee8888;
    
border1px solid #222222;
    
positionrelative;
    
top0px;
    
left0px;
    
visibilityhidden;
}

#btn1:hover #popup
{
    
visibilityvisible;
}

</
style


<
div id="btn1">
    <
div id="popup"></div>
</
div
so when you hover btn1, popup appears. So how do I hide it?? How do I know when the mouse is not over btn1???
__________________
http://feudal-times.net - My PBB Game
http://gwphp.feudal-times.net - My Blog "Gaming With PHP"
freenity is offline  
Reply With Quote