setTimeout就是执行一次,如果要执行多次请在函数里调用自身或者用setInterval
function size(oImage){..................task = setTimeout("showimg()", 100);}
function showimg(){x = x + 50;y = y + 50;alert(x); setTimeout(arguments.callee,100); }或
function size(oImage){..................task = setInterval("showimg()", 100);}
function showimg(){x = x + 50;y = y + 50;alert(x); }
function size(oImage){..................task = setTimeout("showimg()", 100);}
function showimg(){x = x + 50;y = y + 50;alert(x); setTimeout(arguments.callee,100); }或
function size(oImage){..................task = setInterval("showimg()", 100);}
function showimg(){x = x + 50;y = y + 50;alert(x); }
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货