This article mainly introduced the JS realization double click the picture enlargement clicks shrinks the method, involves the JS operation picture and the onclick and the OnDblClick event use skill, needs the friend to be possible to refer to under
The example of this article describes the JS implementation of double click on the image zoom in to zoom out of the method. Share to everyone for your reference. The implementation methods are as follows:
The code is as follows: <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title> Double click on Picture zoom in, zoom out </title>
<body>
<script language= "JavaScript" >
<!--Begin
function EnlargeImage1 () {
image1.height= "300"
}
function DropImage1 () {
Image1.height= "150"
}
End-->
</script>
<table>
<TR><TD align= "center" >
</td></tr>
</table>
Double-click the picture to try the preview effect.
</body>
I hope this article will help you with your JavaScript programming.