Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to change values in a function MM_goToURL()

    I currently have the following:
    function MM_goToURL() { //v3.0
    var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
    for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    }

    How do I change the above function to take the value from the selected option below:

    <form id="form2" name="form2" method="post" action="">
    <select name="select2" class="style11" id="select2" onchange="MM_goToURL('parent.frames[\'mainFrame\']','../FlashSlideShows/Famille_Joseph_Aurore/Flash_WEB/Al_Noella.html');return document.MM_returnValue">
    <option value="Null">Please Select SlideShow</option>
    <option value="../FlashSlideShows/Famille_Joseph_Aurore/Flash_WEB/Joseph_Aurore.html">Joseph</option>
    <option value="../FlashSlideShows/Famille_Joseph_Aurore/Short_Version/Famille_Leblond.html">Familly Photos</option>
    </select>
    </form>
    Last edited by curiousmen; 02-12-2009 at 04:34 PM.

  • #2
    New Coder
    Join Date
    Feb 2009
    Location
    Jakarta, Indonesia
    Posts
    93
    Thanks
    2
    Thanked 20 Times in 20 Posts
    Code:
    <select name="select2" class="style11" id="select2" onchange="MM_goToURL('parent.frames[\'mainFrame\']',this.value);return document.MM_returnValue">

  • #3
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks gun5 much appreciated.


  •  

    Posting Permissions

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