Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/09/2005, 16:44
didierpavajeau
 
Fecha de Ingreso: noviembre-2004
Mensajes: 42
Antigüedad: 20 años, 2 meses
Puntos: 0
aqui te envio un ejemplo

//abre pópup
<html>
<head>
<title>Untitled</title>
<script>
//Script original de KarlanKas para forosdelweb.com

camisa=["Seleccione...","Roja","Verde","Amarilla"];
pantalon=["Seleccione...","De campana","pitillo","chino","pata de elefante"]
sombrero=["Seleccione...","De Ala Ancha","Hongo","Chistera","Boina","Gorra"]

function elegir(esto){
pepe=window.open("ventanapopup.html");

}

</script>
</head>

<body>
<form action="javascript:alert('Enviandooo!!')"
name="formulario"
id="formulario"
style="font: normal 10px/20px verdana; color: navy"
title="Elige que comprar">
<input type="radio"
name="opcion"
value="camisa"
onClick="elegir(this)">camisa<br>

<input style="border:solid 1px black" type="text"
name="quecamisa" id="quecamisa"
readonly><br>

<input type="radio"
name="opcion"
value="pantalon"
onClick="elegir(this)">pantalón<br>

<input style="border:solid 1px black" type="text"
name="quepantalon"
readonly><br>

<input type="radio"
name="opcion"
value="sombrero"
onClick="elegir(this)">sombrero<br>

<input style="border:solid 1px black" type="text"
name="quesombrero"
readonly><br><br>



<input style="heigth:15px;font: normal 10px/10px verdana; color: navy"
type="submit"
id="enviar"
value="Enviar!"
disabled>
</form>


</body>
</html>


//ventanapopup.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<select st style="font: normal; color: navy" name="opciones" onChange="window.opener.document.formulario.quecam isa.value=this.options[this.selectedIndex].value;window.alert('fgff'); self.close()" >
<option value="op1">opcion1</option>
<option value="op2">opcion2</option>
<option value="op3">opcion3</option>

<option value="op4">opcion4</option>
</select>
</body>
</html>