脚本说明:
把如下代码加入<body>区域中
<input type=button value='慢慢变大' οnclick=max()>
<input type=button value='慢慢变小' οnclick=min()>
<img src=049.gif οnclick="javascript:window.open(this.src);" style="CURSOR: pointer" οnlοad="return imgzoom(this,550)">
<script>
var i=0
//变大
function max(){
MImg=MainImg.style.pixelWidth+=i++
MainImg.style.pixelHeight=MImg*aaa
if(i<20)setTimeout('max()',100)
}
//变小
function min(){
MImg=MainImg.style.pixelWidth-=i--
MainImg.style.pixelHeight=MImg*aaa
if(i>0)setTimeout('min()',100)
}
function init(){
aaa=MainImg.height/MainImg.width
MainImg.style.pixelWidth=0
MainImg.style.pixelHeight=0
}
οnlοad=init
</script>
把如下代码加入<body>区域中
<input type=button value='慢慢变大' οnclick=max()>
<input type=button value='慢慢变小' οnclick=min()>
<img src=049.gif οnclick="javascript:window.open(this.src);" style="CURSOR: pointer" οnlοad="return imgzoom(this,550)">
<script>
var i=0
//变大
function max(){
MImg=MainImg.style.pixelWidth+=i++
MainImg.style.pixelHeight=MImg*aaa
if(i<20)setTimeout('max()',100)
}
//变小
function min(){
MImg=MainImg.style.pixelWidth-=i--
MainImg.style.pixelHeight=MImg*aaa
if(i>0)setTimeout('min()',100)
}
function init(){
aaa=MainImg.height/MainImg.width
MainImg.style.pixelWidth=0
MainImg.style.pixelHeight=0
}
οnlοad=init
</script>