Maximum z-index
var a = document.body.getElementsByTagName("*");
var zmax = 0;
for(q in a){
try{
if(jQuery(a[q]).css("z-index") !== "auto" && zmax < jQuery(a[q]).css("z-index")){
zmax = jQuery(a[q]).css("z-index");
}
}catch(e){
}
}
console.log(zmax);
No comments:
Post a Comment