PDA

View Full Version : onchange and 3 iframes



razenha
11-29-2007, 10:31 AM
hi

I solved the problem and there it 's == on the conditional lines


<SCRIPT LANGUAGE="JavaScript">
function OnChange(dropdown)
{
var myindex = dropdown.selectedIndex
if (myindex == 0)
loadthree ('iframes/bestp1.htm' , 'iframes/classif1.htm' , 'iframes/grafic1.htm')
else if (myindex == 1)
loadthree ('iframes/bestp2.htm' , 'iframes/classif2.htm' , 'iframes/grafic2.htm')
return true;
}
function loadthree ( 'iframe1url,iframe2url,iframe3url')
{
parent.FRAME1.location.href=iframe1url
parent.FRAME2.location.href=iframe2url
parent.FRAME3.location.href=iframe3url
}
</script>
<form name = "form1">
<select name = "menu1" onchange="OnChange(this)">
<option value="0">aaaa</option>
<option value="1">bbbb</option>
</select></form>