...

View Full Version : How to change values in a function MM_goToURL()



curiousmen
02-12-2009, 03:26 PM
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>

gun5
02-12-2009, 04:38 PM
<select name="select2" class="style11" id="select2" onchange="MM_goToURL('parent.frames[\'mainFrame\']',this.value);return document.MM_returnValue">

curiousmen
02-12-2009, 09:25 PM
Thanks gun5 much appreciated.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum