here is its working link for internet explorer: http://www.almurtazaschool.com/zoomcheck.php

it works as a beauty in IE, but i wonder what's the reason its not working in firefox. (i don't have sufficient knowledge about JScript).

thanks :)

mcjwb

08-05-2008, 11:12 AM

You need to change this line in the "larger" and "smaller" functions:

now=parseInt(img.style.zIndex);with this:

if(!img.style.zIndex){
now=0;
}
else{
now=parseInt(img.style.zIndex);
}Because when the element doesn't have a z-Index in Firefox parseInt(img.style.zIndex) equates to 'NaN' instead of 0 as it does in IE so the code in the for loop never gets run in Firefox.