Thread: pop up box
View Single Post
Old 12-06-2008, 01:35 PM   #15 (permalink)
kids0407
The Visitor
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
kids0407 is on a distinguished road
Default

Quote:
Originally Posted by freenity View Post
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???

this code not work at IE6+

Please help me , repair it
kids0407 is offline  
Reply With Quote