Digital Point Forums
San Diego Personal Trainer

Go Back   Digital Point Forums > Design & Development > Programming > JavaScript
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Mar 30th 2005, 12:14 pm
welles welles is offline
Peon
 
Join Date: Mar 2005
Posts: 4
welles is on a distinguished road
Layer is blocked by combo box

Hi all,

I have a nevigation menu that uses javascript layer to create drop down menu effect. However, for some reason, the menu layer is blocked by the combo box on the page (in other words, the menu layer is behind the combo box). I've searched the web and found that I could set the z-index for ordering of the stack of the sibling layers. But, unfortunately, it only works for sibling layers, not combo box on the page. Can please anyone give me some directions?

Thanks,
Welles
Reply With Quote
  #2  
Old Mar 30th 2005, 5:14 pm
J.D. J.D. is offline
of the Nightfall
 
Join Date: Nov 2004
Posts: 1,198
J.D. has a spectacular aura aboutJ.D. has a spectacular aura about
Keep in mind that z-index works only for positioned elements (i.e whose position property is not static). Check the position property throughout your HTML/CSS.

J.D.
Reply With Quote
  #3  
Old Mar 31st 2005, 8:56 am
marty marty is offline
Champion of the Naaru
 
Join Date: Mar 2005
Posts: 154
marty is on a distinguished road
The only solution I have ever found for this problem is to place the combo box within it's own div and set the combo boxes visibility to "hidden" on whatever event causes the menu layer to be displayed.

Good luck

Marty
Reply With Quote
  #4  
Old Mar 31st 2005, 11:18 am
nullbit nullbit is offline
Hand of A'dal
 
Join Date: Feb 2005
Posts: 489
nullbit is on a distinguished road
Marty is correct, there is no real solution to this, it's a rendering bug in IE. Either take marty's advice or move the layer so it's not in the same space as the combo-box.
__________________
SEO Tool - The killer search engine optimization tool. No. Really.
The Search Engine Experiment - Discover if Google really giving you the most relevant results
- No recip required.
Reply With Quote
  #5  
Old Mar 31st 2005, 12:01 pm
J.D. J.D. is offline
of the Nightfall
 
Join Date: Nov 2004
Posts: 1,198
J.D. has a spectacular aura aboutJ.D. has a spectacular aura about
Quote:
Originally Posted by nullbit
Marty is correct, there is no real solution to this, it's a rendering bug in IE.
I didn't know about this bug. A quick test shows that, IE simply ignores the position attribute and any relative elements following the combo box are not rendered correctly either:

Code:
<html><head>
<style type="text/css">
div {width: 100px; height: 100px; background-color: #FEE; border: 1px solid red;}
select {width: 100px; height: 100px; border: 1px solid blue; background-color: #EEF;}
</style></head><body>
<div style="z-index: 100">div1<br><strike>z-index</strike></div>
<div style="position: relative; top: -50px; left: 50px; z-index: 10;">div2</div>

<select name="cb1" style="position: relative; top: -100px; left: 100px; z-index: 20;">
	<option selected>value1</option>
	<option>value2</option>
	<option>value3</option>
</select>

<div style="position: relative; top: -150px; left: 150px; z-index: 30;">div3</div>

</body></html>
J.D.
Reply With Quote
  #6  
Old Apr 1st 2005, 9:53 am
marty marty is offline
Champion of the Naaru
 
Join Date: Mar 2005
Posts: 154
marty is on a distinguished road
Exclamation Here's a small example

Code:
<script language="JavaScript" type="text/javascript">  	
function hide(hider)  	
{  		
    document.getElementById(hider).style.visibility = "hidden"  	
}  	
function show (shower)  
{  		
document.getElementById(shower).style.visibility = ""  	
}  
</script>    
<a onmouseout="show('001')" onmouseover="hide('001')">[hide]</a>    
<br>    
<input id="001" type="text" name="dfd">
Reply With Quote
  #7  
Old Apr 4th 2005, 10:09 am
welles welles is offline
Peon
 
Join Date: Mar 2005
Posts: 4
welles is on a distinguished road
Solution found!

http://www.codingforums.com/showthr...&threadid=28261
Reply With Quote
  #8  
Old Sep 1st 2005, 9:46 am
Albertraj Albertraj is offline
Peon
 
Join Date: Sep 2005
Posts: 1
Albertraj is on a distinguished road
Unhappy help me pls...........

Layer is blocked by combo box

--------------------------------------------------------------------------------

Hi all,

I have a nevigation menu that uses javascript layer to create drop down menu effect. However, for some reason, the menu layer is blocked by the combo box on the page (in other words, the menu layer is behind the combo box). I've searched the web and found that I could set the z-index for ordering of the stack of the sibling layers. But, unfortunately, it only works for sibling layers, not combo box on the page. Can please anyone give me some directions?
Reply With Quote
  #9  
Old Jan 4th 2006, 2:28 am
tutty tutty is offline
Peon
 
Join Date: Jan 2006
Posts: 1
tutty is on a distinguished road
Layer is blocked by combo box

look at this:

http://www.aplus.co.yu/wch/intro/
Reply With Quote
  #10  
Old Jan 6th 2006, 4:03 pm
legend2's Avatar
legend2 legend2 is offline
of the Nightfall
 
Join Date: Nov 2005
Posts: 1,525
legend2 is just really nicelegend2 is just really nicelegend2 is just really nicelegend2 is just really nice
bottom of the line, IE is never as we expect it to.
Reply With Quote
  #11  
Old Jan 11th 2006, 1:00 am
Eddie Traversa Eddie Traversa is offline
Peon
 
Join Date: Jan 2006
Posts: 4
Eddie Traversa is on a distinguished road
active content such as forms drop down lists etc needs a specialized fix for IE that involves an iframe. See here

http://dhtmlnirvana.com/content/activecontentfix/active3.html

Eddie
http://dhtmlnirvana.com/
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocked Pages and Validation Owlcroft Co-op Advertising Network 8 Oct 5th 2006 12:31 pm
Site blocked? sji2671 Setup / Validation Help 10 Apr 13th 2005 8:40 am
mouseover layer tomcromp HTML & Website Design 1 Feb 23rd 2005 11:57 am
IP address blocked? Arnica Setup / Validation Help 1 Jan 4th 2005 10:04 am
Requests Hang - blocked? Jayne Co-op Advertising Network 1 Nov 26th 2004 9:33 am


All times are GMT -8. The time now is 7:31 am.