|    
			
				06/07/2009, 16:22
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: febrero-2009 
						Mensajes: 188
					 Antigüedad: 16 años, 8 meses Puntos: 1 |  | 
  |  Respuesta: cambira un texto por un input al presionar un submi  
  <html> <head>
 
 <?php $a="hallking";?>
 <script type="text/javascript">
 function hola(){
 elem=document.createElement('input')
 elem=document.createElement('input')
 elem=document.createElement('input')
 elem.type = "text"
 elem.value = "<?php $a ?>"
 elem.name = "nada"
 
 var oldElement = document.getElementById("pn,sn,pa");
 
 oldElement.parentNode.replaceChild(elem, oldElement);
 
 }
 </script>
 
 </head>
 <body>
 
 
 <b id="pn">text</b>
 <br>
 <b id="sn">text</b>
 <br>
 <b id="pa">text</b>
 <br>
 
 <button onclick="hola();">Replace text</button>
 
 </body>
 </html>
     |