Hola forer@s, tengo un problema!!! Tengo un combox, cuando eligo lo que hay en el combox quiero que salga una ventana de tipo popup, cuando eligo otra opcion que salga otra ventana y asi sucesivamente.
Muestro el código fuente y espero que algun@ de vosotr@s es capaz de solucionar el problema:
// Código PoPup
<script language="javascript" type="text/javascript">
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math .floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(scr een.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
//Para abrir el PopUP
<a href="prueba.html" onclick="NewWindow(this.href,'ventanita','800','40 0','yes','center');return false" onfocus="this.blur()">prueba</a>
//Código Combox
<select name="select" onChange="location.href=this.value">
<option value="pruebra.html">Prueba</option>
<option value="prueba2.html">Prueba 2</option>
<option value="prueba3.html">Prueba 3</option>
</select>
Muchas gracias !!!