Hi,
I written the following script:
function changeWidth(elm,toWidth){
var width = parseInt(elm.style.width);
var change = toWidth-width;
var total=width+Math.round((change/2));
var timer;
elm.style.width=total+'px';
function c() {
changeWidth(elm,toWidth);
}...