
07/08/2010, 14:30
|
| | Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años, 10 meses Puntos: 3 | |
Respuesta: ayuda porfa,con esta funcion Gracias por responder, aquí como lo llamo
NO funciono el cambio
<div style="z-index: 101; left: 185px; width: 36px; position: absolute; top: 136px;
height: 31px">
<asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="redimensionar('sumar')" Height="40px" ImageUrl="~/fotos/ferrari.gif"
Width="39px" /></div>
</div>
aquí el cambio que me recomendaste
function redimensionar (accion) {
var height, width
var alto = document.getElementById("ImageButton1").offsetHeig ht;
var ancho = document.getElementById("ImageButton1").offsetWidt h;
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";
}
} |