日期:2009-10-27  浏览次数:21008 次

<script language="javascript">
function fangda_x(the)
{
//    alert (the.src);

//    alert (the.width);
//   alert (the.height);
var x_x=the.width;
var y_x=the.height;
var i_x=1.2;
var str1;
if (event.ctrlKey)
   {
    x_x=x_x/i_x;
    y_x=y_x/i_x;
    }
else
    {
    x_x=x_x*i_x;
    y_x=y_x*i_x;
    }
the.width=x_x;
the.height=y_x;
}
</script>

<HTML>
<body>
img src=../../"aa.jpg" width="300" height="300" ondblclick="fangda_x(this)"></body>
</HTML>