Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/09/2004, 07:52
Avatar de seoista
seoista
 
Fecha de Ingreso: septiembre-2003
Ubicación: Pues leyéndote
Mensajes: 1.076
Antigüedad: 20 años, 7 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
__________________
· No contesto por M.P.