<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>