Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/01/2012, 14:45
fmfteju
 
Fecha de Ingreso: enero-2012
Mensajes: 6
Antigüedad: 12 años, 3 meses
Puntos: 0
Mensaje Combobox Multiple Anidado

Estimados amigos, voy al grano en el combo 4, cuando selecciono el cuadro por ejemplo calendario, me gustaria me enviara a una pagina web, estoy creando una web personal de deporte. Solo funciona el tercera division, y cuando te pide el cuadro selecciono calendario y me sale el cuadro informativo que es el que deseo quitar y que me envie a una pagina determinada.Gracias de antemano.

AQUÍ OS DEJO EL CODIGO, A VER SI ME PODEIS HECHAR UNA MANO

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>formulario</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">

/*
Triple Combo Script Credit
By Philip M: http://www.codingforums.com/member.php?u=186
Visit http://javascriptkit.com for this and over 400+ other scripts
*/

var categories = [];
categories["startList"] = ["Temp.2011/12",""]
categories["Temp.2011/12"] = ["Senior","Juvenil","Cadete","Infantil","Alevín","B enjamín","Prebenjamín","Femenino"];
categories["Senior"] = ["3ª División","1ª Andaluza Gr. III","Regional Preferente","1ª Regional Gr.I","1ª Regional Gr.II","1ª Regional Gr.III","1ª Regional Gr.IV"];
categories["Juvenil"] = ["División de Honor Gr.IV","Liga Nacional Gr.13","Juvenil Preferente","1ª Juvenil Gr.I","1ª Juvenil Gr.II","2ª Juvenil Gr.I","2ª Juvenil Gr.II","2ª Juvenil Gr.III","2ª Juvenil Gr.IV"];
categories["Cadete"] = ["Cadete Autonómico Gr.II","Preferente Cadete","1ª Cadete Gr.I", "Hats","1ª Cadete Gr.II","2ª Cadete Gr.I","2ª Cadete Gr.II","2ª Cadete Gr.III","2ª Cadete Gr.IV"];
categories["Infantil"] = ["Infantil Autonómico Gr. II", " Preferente Infantil", "1ª Infantil Gr. I", "1ª Infantil Gr. II", "2ª Infantil Gr. I", "2ª Infantil Gr. II", "2ª Infantil Gr. III", "2ª Infantil Gr. IV"];
categories["Alevín"] = ["Preferente Alevín","1ª Alevín Gr. I","1ª Alevín Gr. II","2ª Alevín Gr. I","2ª Alevín Gr. II","2ª Alevín Gr. III","2ª Alevín Gr. IV","2ª Alevín Gr. V","2ª Alevín Gr. VI"];
categories["Benjamín"] = ["1ª Benjamín Gr.I","1ª Benjamín Gr.II","21ª Benjamín Gr.I","2ª Benjamín Gr.II","2ª Benjamín Gr.III","2ª Benjamín Gr.IV","2ª Benjamín Gr.V","2ª Benjamín Gr. VI"];
categories["Prebenjamín"] = ["Prebenjamín Gr. I","Prebenjamín Gr. II","Prebenjamín Gr. III", "Prebenjamín Gr. IV", "Prebenjamín Gr. V"];
categories["Femenino"] = ["1ª División ","2ª División Gr. IV","Provincial Gr. I", "Provincial Gr. II"];
categories["3ª División"] = ["Calendario","Horario","Clasificación","Resultados ","General"];

var nLists = 4; // number of select lists in the set

function fillSelect(currCat,currList){
var step = Number(currList.name.replace(/\D/g,""));
for (i=step; i<nLists+1; i++) {
document.forms['tripleplay']['List'+i].length = 1;
document.forms['tripleplay']['List'+i].selectedIndex = 0;
}
var nCat = categories[currCat];
for (each in nCat) {
var nOption = document.createElement('option');
var nData = document.createTextNode(nCat[each]);
nOption.setAttribute('value',nCat[each]);
nOption.appendChild(nData);
currList.appendChild(nOption);
}
}

function getValue(L4, L3, L2, L1) {
alert("Your selection was:- \n" + L1 + "\n" + L2 + "\n" + L3 + "\n" + L4);
}

function init() {
fillSelect('startList',document.forms['tripleplay']['List1'])
}

navigator.appName == "Microsoft Internet Explorer" ? attachEvent('onload', init, false) : addEventListener('load', init, false);

</script>
</head>

<body>
<center>
<form name="tripleplay" action="">
<select name='List1' onChange="fillSelect(this.value,this.form['List2'])">
<option selected>Seleccione Temp.</option>
</select>
&nbsp;
<select name='List2' onChange="fillSelect(this.value,this.form['List3'])">
<option selected>Seleccione Categor&iacute;a</option>
</select>
&nbsp;
<select name='List3' onChange="fillSelect(this.value,this.form['List4'])">
<option selected>Seleccione Grupo</option>
</select>
&nbsp;
<select name='List4' onChange="getValue(this.value,
this.form['List3'].value,
this.form['List2'].value,
this.form['List1'].value)">
<option selected >Seleccione Cuadro</option>
</select>

</form>
</center>
</body>
</html>