dimanche 25 mai 2014

how to make this script more simple?


Vote count:

-1





function tothePage() {
if (document.drop.choice1.selectedIndex == 0 || document.drop.choice2.selectedIndex == 0) { return; }
if (document.drop.choice1.selectedIndex == 1 && document.drop.choice2.selectedIndex == 1) { window.location.href="http://ift.tt/1tCxLFt"; }
if (document.drop.choice1.selectedIndex == 1 && document.drop.choice2.selectedIndex == 2) { window.location.href="http://ift.tt/1jNN5ff"; }
if (document.drop.choice1.selectedIndex == 1 && document.drop.choice2.selectedIndex == 3) { window.location.href="http://ift.tt/1tCxLFv"; }
if (document.drop.choice1.selectedIndex == 1 && document.drop.choice2.selectedIndex == 4) { window.location.href="http://ift.tt/1tCxLFx"; }

if (document.drop.choice1.selectedIndex == 2 && document.drop.choice2.selectedIndex == 1) { window.location.href="http://ift.tt/1jNN5fj"; }
if (document.drop.choice1.selectedIndex == 2 && document.drop.choice2.selectedIndex == 2) { window.location.href="http://ift.tt/1tCxLFz"; }
if (document.drop.choice1.selectedIndex == 2 && document.drop.choice2.selectedIndex == 3) { window.location.href="http://ift.tt/1jNN3UT"; }
if (document.drop.choice1.selectedIndex == 2 && document.drop.choice2.selectedIndex == 4) { window.location.href="http://ift.tt/1tCxLVP"; }
}
// -->



Mike W

13.3k

asked 59 secs ago






Aucun commentaire:

Enregistrer un commentaire