Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/10/2012, 05:41
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Como hacer zoom a un jpg

con javascript
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript">
function redimensionar (accion) {
var height, width
var alto = document.getElementById("mesa").offsetHeight;
var ancho = document.getElementById("mesa").offsetWidth;
if (accion == 'sumar') {
height = parseInt(alto+10);
width = parseInt(ancho+10);
document.getElementById("mesa").style.height = height + "px";
document.getElementById("mesa").style.width = width + "px";
}
else
{
height = parseInt(alto-10);
width = parseInt(ancho-10);
document.getElementById("mesa").style.height = height + "px";
document.getElementById("mesa").style.width = width + "px";
}
}
</script>
</head>
<body>
<img src="iconos/anixmas11.gif" id="mesa" width="50px" height="53px" /><br/>
<input type="button" value="+" onclick="redimensionar('sumar')" /><br/>
<input type="button" value="-" onclick="redimensionar()" />
</body>
</html>
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}