fatto, posto il codice:
codice:
function resize(id_riferimento,comando) {
rif = document.getElementById(id_riferimento);
salto_pixel = new Number(20);
array_dati = rif.src.split('&');
array_w = array_dati[0].split('?');
stringa_w = array_w[1].split('=');
w = new Number(stringa_w[1]);
stringa_h = array_dati[1].split('=');
h = new Number(stringa_h[1]);
stringa_src = array_dati[2].split('=');
src = stringa_src[1];
if (comando == 'up') {
h_new = h+salto_pixel;
w_new = w+salto_pixel;
//alert(h_new+';'+w_new);
rif.src = '".url_thumb_file."?w='+(w_new)+'&h='+(h_new)+'&src='+src;
} else if (comando == 'down') {
h_new = h-salto_pixel;
w_new = w-salto_pixel;
//alert(h_new+';'+w_new);
rif.src = '".url_thumb_file."?w='+(w_new)+'&h='+(h_new)+'&src='+src;
}
}
come potete vedere la funziona fa anche altro...