Full version: jsB@nk » Image » Image Scale
URL: https://www.javascriptbank.com/image-scale.html
This JavaScript will decrease/increase size of original image if user click specified buttons.
Full version: jsB@nk » Image » Image Scale
URL: https://www.javascriptbank.com/image-scale.html
<SCRIPT type=text/javascript>function imgscale(a) {var imgs = document.images;for (var i=0; i<imgs.length; i++) {var w=imgs[i].width, h=imgs[i].height;imgs[i].width = a*w;imgs[i].height = a*h;}}</SCRIPT><SCRIPT type=text/javascript>function imgscale(a) {var imgs = document.images;for (var i=0; i<imgs.length; i++) {var w=imgs[i].width, h=imgs[i].height;imgs[i].width = a*w;imgs[i].height = a*h;}}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<DIV class=scale>Image size: <A href="javascript:imgscale(.5)">decrease</A> <A href="javascript:imgscale(2)">increase</A> <A href="javascript:location.reload()">refresh</A> </DIV><br><IMG alt="image: Foo" src="logojs.gif"><P><IMG alt="image: Girls" src="photo1.jpg"><IMG alt="image: Girls" src="photo2.jpg"><IMG alt="image: Girls" src="photo3.jpg"></P><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->