Results 1 to 1 of 1

Thread: onchange and 3 iframes

  1. #1
    Join Date
    Nov 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default onchange and 3 iframes

    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>
    Last edited by razenha; 11-30-2007 at 02:59 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •