开发者

Setting marker zIndex in IE

I'm trying to set zIndex to markers, mainly, i want to set all green markers on top.

The code below works GREAT in any other browser but IE!

I'm checking in the marker is green if it's containing 'st1' in the filename.

I'm using mootools so the code is a bit mootools specific, but any Javascript help would be appreciated:

gmarkers.each(function(mrk,ind){
    try {
        if (mrk.qa.image.indexOf('st1')!=-1){
            if (Browser.Engine.trident){
                mrk.Ir[0].zIndex = ind + 1000
            } else {
                mrk.Ir[0].setStyle('z-index',ind + 1000)
            }
        } else {
            if (Browser.Engine.trident){
        开发者_如何转开发        mrk.Ir[0].zIndex = ind
            } else {
                mrk.Ir[0].setStyle('z-index',ind )
            }

        }
    } catch (err){}
})


found it, it's mrk.Ir[0].style.zIndex, not mrk.Ir[0].zIndex

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜