javascript - Setting marker zIndex in IE -


I am trying to set zIndex for markers, primarily, I set all the green markers on top Want to

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

I see that the marker is green in color if it has 'st1' in the file name.

Using Mootools, code is special, but any JavaScript support will 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)}} and {if (Browser.Engine.trident) {mrk.Ir [0] .zIndex = ind} else {mrk.Ir [0] .setStyle ( 'Z-index', ind)}}} hold (mistake) {}}) 

< P> found this, it is mrk.Ir [0] .style.zIndex, not mrk.Ir [0] .zIndex


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -