
08/08/2005, 17:31
|
 | | | Fecha de Ingreso: mayo-2003 Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 9 meses Puntos: 5 | |
Código HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<script language="javascript">
var _sys_isIE=document.all?true:false;
var _sys_isNS4x=document.layers?true:false;
var _sys_isNS6=document.getElementById?true:false;
function getObject(name) {
if(_sys_isIE) {
return eval("document.all."+name);
} else {
if(_sys_isNS4x) {
return eval("document."+name);
} else {
if(_sys_isNS6) {
return document.getElementById(name);
} else {
return null;
}
}
}
}
function zoom(opc) {
var div = getObject("texto");
var tamano = parseInt(div.style.fontSize.replace("px", ""));
if (opc == 0) {
tamano++;
div.style.fontSize = tamano.toString() + "px";
} else {
tamano--;
div.style.fontSize = tamano.toString() + "px";
}
}
</script>
<body>
<div id="texto" style="font-size:11px;">Hola Mundo!</div>
<br>
<input type="button" name="mas" value="+" onClick="zoom(0);">
<input type="button" name="menos" value="-" onClick="zoom(1);">
</body>
</html>
__________________ Saruman One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.
Última edición por Saruman; 09/08/2005 a las 06:52 |