window.onload = function(){
var max =document.getElementById("max")
var timer
max.onclick =function(){
maxFun()}
var img =document.getElementById("myImage")
function maxFun(){
timer = setTimeout(function(){img.width=img.width*1.05;
img.height=img.height*1.05},100)
}
}
var max =document.getElementById("max")
var timer
max.onclick =function(){
maxFun()}
var img =document.getElementById("myImage")
function maxFun(){
timer = setTimeout(function(){img.width=img.width*1.05;
img.height=img.height*1.05},100)
}
}
2016-12-31
$(function(){
$("#max").click(function(){$("#max").animate({transform:"scale(2)"})})
})
$("#max").click(function(){$("#max").animate({transform:"scale(2)"})})
})
2016-12-31
img.width = img.width*1.05; 老师错了,此为每次自身比前一值递增5%,第6次必定大于最原始图的30%
2016-11-29