IE6 Shows Element Under Div Despite z-index Order Set

V

VUNETdotUS

For IE you must specify the z-index for both the ul *and* the li that
contains it.

thanks, I've just assigned z-index to all elements and there is no fix
to my problem.
any other ideas/suggestions?
thanks again
 
V

VUNETdotUS

For IE you must specify the z-index for both the ul *and* the li that
contains it.

ok. a bit more playing with z-index and we are done. it is fixed.
thanks
 
V

VUNETdotUS

I was just about to tell you so :)

Does not work at all in IE7 though.

hm... The test case does not work in IE7 but my real code works. I
will compare to find what is missing in test case. Thanks for noticing.
 
V

VUNETdotUS

I was just about to tell you so :)

Does not work at all in IE7 though.

Another IE problem: pop-up menu has spaces between each ul-li box and
when mouseover-moving slowly between them, menu may disappear. Any
possible suggestions? Thanks.
 
J

Jonathan N. Little

Your csshover.htc seems a bit complicated. I have a simpler version that
I adapted from Vladdy...demonstrated on a mouseover effect on the images
of this page:

http://www.littleworksstudio.com/CSTC2007.php
The Canadian Scottish Terrier Club 2007 Fundraiser


All you have to do is add the MS proprietary CSS property

behavior: url(IEFixes.htc);

on whatever element that you want to hover, you can restrict it to just
the class subset of elements to the HTC doesn't scan the whole DOM

UL.menu { behavior: url(IEFixes.htc); }

then for whatever your hovered element is add the special .hover class
for IE

UL.menu:hover,
UL.menu.hover { ...}

The file IEFixes.htc:

<public:component>
// For MSIE use JScript to attach JS functions to compensate
// for missing pseudo-class support
// from Vladdy http://www.vladdy.net/Demos/IEPseudoClassesFix.html
// updated for html4.01 jnl 3/06
<public:attach event="onmouseover" onevent="DoHover()">
<public:attach event="onmouseout" onevent="RestoreHover()">
<public:attach event="onmousedown" onevent="DoActive()">
<public:attach event="onmouseup" onevent="RestoreActive()">
<script type="text/jscript">
function DoHover(){
element.className += ' hover';
}
function DoActive(){
element.className += ' active';
}
function RestoreHover(){
element.className = element.className.replace(/\shover\b/,'');
}
function RestoreActive(){
element.className = element.className.replace(/\sactive\b/,'');
}
</script>
</public:component>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top