Код написаный за две минуты на коленке выглядит так :
Код:
window.onload = function() {
start();
}
var id = 'picture';
var step = 15;
var counter = 0;
var limit = 10;
function increment() {
if ( counter == limit ) {
stop();
}
var element = document.getElementById( id );
var width = parseInt( element.width );
element.width = width + step;
counter ++;
}
function start() {
return interval = setInterval("increment()", 500);
}
function stop() {
return clearInterval( interval );
}
Скачать можно тут :
http://webfile.ru/1436939