Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,096
    Thanks
    15
    Thanked 1 Time in 1 Post

    Arrow windowed objects?

    Code:
    .demo {color:#000033; background-color:<%=bgCol%>; layer-background-color:#cccccc; position:absolute; bottom:10px; width:700px; height:100px; visibility:hidden; z-index:5}
    
    <select name="pre" class="drop" tabindex="" onchange="javascript: sortLeg1(this.options[this.selectedIndex].value)" style=" position: absolute; z-index:9;">
    ....options........
    </select>
    
    <div id="demodiv" class="demo">
    <table>
    <tr>
    <td><font face="verdana" size="-2" color="#FFFFFF"><b>Rules</b></font></td>
    </tr>
    <tr>
    <td><font face="verdana" size="-2" color="#FFFFFF"><b>Heading</b></font></td>
    <td><font face="verdana" size="-2" color="#FFFFFF"><b>Content</b></font></td>
    </tr>
    </table>
    i have a problem with this onMouseOver.
    It seems to have something to do with select being a windowed object.
    the div (onMouseover) does not cover the select boxes, they show through.
    is there a way around this?

  • #2
    Regular Coder mlse's Avatar
    Join Date
    Mar 2005
    Posts
    624
    Thanks
    20
    Thanked 19 Times in 18 Posts
    ¿Qué?
    Die Welt ist ein Irrenhaus und hier ist die Zentrale!

  • #3
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,096
    Thanks
    15
    Thanked 1 Time in 1 Post

  • #4
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,096
    Thanks
    15
    Thanked 1 Time in 1 Post
    <html>
    <head>
    <script>
    function DivSetVisible(state)
    {
    var DivRef = document.getElementById('PopupDiv');
    var IfrRef = document.getElementById('DivShim');
    if(state)
    {
    DivRef.style.display = "block";
    IfrRef.style.width = DivRef.offsetWidth;
    IfrRef.style.height = DivRef.offsetHeight;
    IfrRef.style.top = DivRef.style.top;
    IfrRef.style.left = DivRef.style.left;
    IfrRef.style.zIndex = DivRef.style.zIndex - 1;
    IfrRef.style.display = "block";
    }
    else
    {
    DivRef.style.display = "none";
    IfrRef.style.display = "none";
    }
    }
    </script>
    </head>
    <body>
    <form>
    <select>
    <option>A Select Box is Born ....</option>
    </select>
    </form>
    <div
    id="PopupDiv"
    style="position:absolute; top:25px; left:50px; padding:4px; display:none; background-color:#000000; color:#ffffff; z-index:100">
    .... and a DIV can cover it up<br>through the help of an IFRAME.
    </div>
    <iframe
    id="DivShim"
    src="javascript:false;"
    scrolling="no"
    frameborder="0"
    style="position:absolute; top:0px; left:0px; display:none;">
    </iframe>
    <br>
    <br>
    <a href="#" onclick="DivSetVisible(true)">Click to show DIV.</a>
    <br>
    <br>
    <a href="#" onclick="DivSetVisible(false)">Click to hide DIV.</a>
    </body>
    </html>

  • #5
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    the div (onMouseover) does not cover the select boxes, they show through.
    AFAIK there is nothing you can do about, unless you:
    1 - change the design, so that the div woun't cover the form's elements
    2 - make the select visible/hidden onmouseover
    3 - build a "pseudo" select element using DOM (&graphics) methods.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #7
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Yes, Vladdy, your code was in my mind, but I was not able to remember where it can be found...
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •