Phiên bản đầy đủ: jsB@nk » » Kéo dãn ảnh
URL: https://www.javascriptbank.com/image-scale.html
Hiệu ứng có chức năng phóng to hay thu nhỏ ảnh trên trang web thông qua các liên kết.
Phiên bản đầy đủ: jsB@nk » » Kéo dãn ảnh
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-->