after loading images into array , the following code works fine with ie to display all images properly
arr_image[1] = new Image();
arr_image[1] = "images/xella.jpg";
arr_height[1] = 402;
arr_width[1] = 383;
arr_image[2] = new Image();
arr_image[2] = "images/bella.jpg";
arr_height[2] = 352;
arr_width[2] = 253;
etc.
...
<img name="work" src="null" border="0">
...
document.images['work'].src = arr_image[userName];
document.images['work'].width = arr_width[userName];
document.images['work'].height = arr_height[userName];
HOWEVER, netscape 4.7 seems to have a problem by sizing all other images in the array to the first size.(i have not tried a newer version since i am trying to support as many browsers as possible).
thanks
arr_image[1] = new Image();
arr_image[1] = "images/xella.jpg";
arr_height[1] = 402;
arr_width[1] = 383;
arr_image[2] = new Image();
arr_image[2] = "images/bella.jpg";
arr_height[2] = 352;
arr_width[2] = 253;
etc.
...
<img name="work" src="null" border="0">
...
document.images['work'].src = arr_image[userName];
document.images['work'].width = arr_width[userName];
document.images['work'].height = arr_height[userName];
HOWEVER, netscape 4.7 seems to have a problem by sizing all other images in the array to the first size.(i have not tried a newer version since i am trying to support as many browsers as possible).
thanks