rynix Posted August 10, 2006 Share Posted August 10, 2006 Hi guys, any idea on using z-index:1 n cover the drop down list ?<html><head><script type="text/javascript">var timerfunction scrolltop(){document.getElementById('scrollmenu').style.pixelTop=document.body.scrollToptimer=setTimeout("scrolltop()",1)}function stoptimer(){clearTimeout(timer)}</script></head><body onload="scrolltop()" onunload="stoptimer()"><span id="scrollmenu" style="position:absolute;z-index:1"><br /><input type = button value ="always on top"></span><table border="0" width="100%"><tr><td width="100"> </td><td>Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br />Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br /><select><option>HERE</option></select><br /><br /><br /><br /><br />Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br />Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br />Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br />Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br />Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br />Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br />Scroll this page to see the "always-on-top" button<br /><br /><br /><br /><br /></td></tr></table></body></html> Link to comment Share on other sites More sharing options...
pixelDepth Posted August 11, 2006 Share Posted August 11, 2006 Yeah, it's a know problem. The select element ignores the zIndex and stays at the top, there are a few ways to solve this, most common being to hide the select element, while the other method is better. Have a read here...http://dotnetjunkies.com/WebLog/jking/arch.../07/21/488.aspx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now