Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/08/2010, 12:57
chuchufuentes
 
Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años
Puntos: 3
ayuda porfa,con esta funcion

estoy usando asp.net, se quiere que al darle click a la imagenbutton, esta se agrande, pero que sucede, se agranda y luego regresa a posición original en 1/2 segundo. aqui la funcion

function redimensionar (accion) {
var height, width
var alto = document.getElementById("ImageButton1").height;
var ancho = document.getElementById("ImageButton1").width;
if (accion == 'sumar') {
height = parseInt(alto+30);
width = parseInt(ancho+30);
document.getElementById("ImageButton1").style.heig ht = height + "px";
document.getElementById("ImageButton1").style.widt h = width + "px";
}
else
{
height = parseInt(alto-10);
width = parseInt(ancho-10);
document.getElementById("ImageButton1").style.heig ht = height + "px";
document.getElementById("ImageButton1").style.widt h = width + "px";
}
}


le coloque return false, pero nada. please
una ayudidate hermanito