or better yet (thanks Eric!):

$('#menu li').each(function(i){
    $(this).css('z-index',10-i);
});

- ricardo

On Sep 23, 3:06 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> $('#menu li').each(function(){
>  var zindex = 10 - $(this).parent().find('li').index(this);
>  $(this).css('z-index',zindex);
>
> });
>
> On Sep 23, 10:12 am, Aaron <[EMAIL PROTECTED]> wrote:
>
> > Unfortunately I don't understand the jQuery enough to put something
> > like that together. Anyone else understand it enough to give this a
> > whirl?
>
> > Aaron
>
> > On Sep 22, 9:55 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
>
> > > Your solution for fixing this incarnation of the IE z-index bug is
> > > actually the only one I have ever come across, so whilst it is hacky,
> > > it's probably as good as you are going to get. I guess a nifty bit of
> > > jQuery could make applying the z-indexes easier and keep the source
> > > HTML clean. If anyone wants to give that a go please share the
> > > results!
>
> > > Joel Birch.

Reply via email to