Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/10/2009, 09:40
Avatar de rompeguesos
rompeguesos
 
Fecha de Ingreso: marzo-2009
Mensajes: 692
Antigüedad: 15 años, 2 meses
Puntos: 8
Pregunta no me funciona en ningun navegador de los que e probado

Hola amigos tengo este codigo:

Código PHP:
<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> 
y solo me funciona en internet explorer y no en los demas se puede saber porque?