I've got an image that zooms in nicely and zooms out. When it zooms in it takes an encasing frame with it but when it zooms out again it leaves the frame behind. Why? The code is here.
Code:
clickZoom:function(){
document.getElementById('pix').width+=zW;
document.getElementById('pix').height+=zH;
},
resetZoom:function(){
Build.clickStop();
currSlide.value=0;
document.getElementById('pix').width=oW;
document.getElementById('pix').height=oH;
document.getElementById('pix').src=slides[0][0];
},
outZoom:function(){
if(document.getElementById('pix').width>oW){
document.getElementById('pix').width-=zW;
document.getElementById('pix').height-=zH;
You can see it happening at http://climatecalm.org/hydro.htm