
17/09/2004, 07:52
|
 | | | Fecha de Ingreso: septiembre-2003 Ubicación: Pues leyéndote
Mensajes: 1.076
Antigüedad: 21 años, 5 meses Puntos: 59 | |
Hola BKS. Cambiar tamaño de letras
Mira si te vale esto:
Código:
<head>
<script language="JavaScript">
function CambioTamanio(){
var Boton=window.event.srcElement
var Elementos=document.all.tags("P")
for (i=0;i<Elementos.length;i++){
Elementos[i].style.fontSize=Boton.value
}
}
function MarcaParrafo(){
var Parrafo=window.event.srcElement
Parrafo.style.color="red"
}
</script>
</head>
<body>
<div onclick="CambioTamanio()">
<!--Tamaño del texto:-->
Si no lees bien el texto, pulsa aquí: <input type="button" VALUE="10">
<input type="button" VALUE="15">
<input type="button" VALUE="20">
<input type="button" VALUE="25">
<input type="button" VALUE="30">
<input type="button" VALUE="35">
<input type="button" VALUE="40">
</div>
<div ondblclick="MarcaParrafo()">
<p>TEXTO QUE QUIERAS</p>
</div>
</body>
Saludos |