DHTML Image Zoom Out
View Live Demo
In this Script WHEN You Move You Click On The Following Image, The Image Size Will Decrease Gradually (I.e The Image Will Zoom Out) And Will Finally Disappear.
The script is very easy to customer. Here The Event That Calls The Function Is OnClick. You can change it to onmouseover, onmouseout or onmousedown.
Select All code
// (c) 2002 premshree pillai
// http://www.qiksearch.com
// premshree@hotmail.com
// LoAction of this Script:
// http://www.qiksearch.com/javascripts/image_zoom_out.htm
// visit http://www.qiksearch.com/javascripts.htm for more free scripts
Document.write ('
IMG_ACT_WIDTH = IZO.WIDTH;
IMG_ACT_HEIGHT = izo.Height;
i = 1;
Function zoom_out ()
{
IF (izo.width == 0)
{
Izo.border = 0;
}
IF (izo.width! = 0)
{
Izo.width- = i;
Izo.height = Math.Round (IZO.WIDTH * (IMG_ACT_HEIGHT) / (IMG_ACT_WIDTH));
SetTimeout ("Zoom_out ()", 1);
i = 1;
}
}
script>