135、点击使图片大小变化

135、点击使图片大小变化

脚本说明:

把如下代码加入<body>区域中

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function enlargeImage1(){

   image1.height="300"

}

function dropImage1(){

   image1.height="150"

}

function enlargeImage2(){

   image2.height="300"

}

function dropImage2(){

   image2.height="150"

}

//  End -->

</script>

<table>

<tr><td align="center">

<img src="picture4-sm.gif" height="150" name="image1" ondblclick="enlargeImage1()" onclick="dropImage1()">

</td><td align="center">

<img src="picture6-sm.gif" height="150" name="image2" ondblclick="enlargeImage2()" onclick="dropImage2()">

</td></tr>

</table>

 

 

Write a comment

Comments: 0