Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/09/2009, 11:01
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 14 años, 11 meses
Puntos: 1517
Respuesta: iframe y form

Tendiras que crear un parametro en la funcion de changeSource y llamar el campo algo así
Código html:
Ver original
  1. <body bgcolor="#000000">
  2. <FORM name="formulario" ACTION="" METHOD="POST">
  3. <img border="0" onclick="test.location.href='http;//www,google,es/';document.getElementById('test').frameBorder=1" src="world.jpg" width="16" height="16"><img border="0" src="black.jpg" width="16" height="16"><img border="0" onclick="test.location.href='http;//rampage-clan,ukgame,co,uk';document.getElementById('test').frameBorder=1" src="group.jpg" width="16" height="16"><img border="0" src="black.jpg" width="16" height="16"><img border="0" onclick="test.location.href='http;//space,widicommunity,com';document.getElementById('test').frameBorder=1" src="heart.jpg" width="16" height="16"><img border="0" src="black.jpg" width="16" height="16">
  4. <INPUT TYPE="text" NAME="web" size="100">
  5. <img border="0" onclick="changeSource(document. formulario.web.value)" src="folder_go.jpg" width="16" height="16" TYPE="submit" />
  6. </FORM>
  7. <p>
  8. <script type="text/javascript">
  9. function changeSource(url)
  10.   {
  11.   document.getElementById("test").src=url
  12.   }
  13. <iframe src="http;\\www,widicommunity,com" frameborder="0" name="test" id="test" width=100&#37; height=800 border="0" align="absbottom" marginwidth="1" marginheight="1"></iframe>
  14. </p>
  15. </html>
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos

Última edición por abimaelrc; 04/09/2009 a las 11:06