Comunidad de diseño web y desarrollo en internet online

Add <input>

Citar            
MensajeEscrito el 08 Sep 2010 10:50 pm
Saludos..... :wink: :wink: :wink: :wink: :wink: :oops: :oops: :oops:

ES pocible realizar esto

tengo esto:

Código HTML :

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
input.w_auto{
   height:25px;
   color:#666666; 
   width:400px; 
   background:#FFF;
   border: 1px solid #000;
}

  #ok{
   position: absolute;
   top:16px;
   left: 380px;
  }
</style>

   <script language="javascript"> 
      function goto(){ 
   var $url = document.getElementById("ir").value; 
   var $vid = $url.replace(/watch\?v=/,"v/");  
   window.location = $vid; 
}
    
    </script> 

</head>
<body style="background:#ffffff;">
      <form action="javascript:goto()">
        <p>
         <input type="text" class="w_auto"  name="ir" id="ir" value="Example: http://www.youtube.com/watch?v=D3AfNXdg2Tk" size="20">  
         <input id="ok" type="image" src="button.png" name="Enviar">
      </form> 
   </div>

</body>
</html>


entonces cuando el Usiario le de a la imagen de

Código HTML :

<input id="ok" type="image" src="button.png" name="Enviar">
en el renglon de Abajo salga un nuevo

Código HTML :

 <input type="text" class="w_auto"  name="ir_1" id="ir_1" value="Example: http://www.youtube.com/watch?v=D3AfNXdg2Tk" size="20">  


esta vez cambio "ir -----> ir_1" si otra vez presiona que salga

Código HTML :

 <input type="text" class="w_auto"  name="ir_2" id="ir_2" value="Example: http://www.youtube.com/watch?v=D3AfNXdg2Tk" size="20">  


y asi sucesivamente: lo que DESEO :oops: :oops: :oops: es que si el usuario presion 10 vecez en la Pg hay 10 campos por llenar...


Gracias :oops: :oops: :oops: :oops: :) :) :) :)

Por lorenaFLASH

45 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Sep 2010 10:45 am

Por Toth

9 de clabLevel



Genero:Masculino  

msie8

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.