The function that's responsible for taking the final selected OPTION"s value attribute and redirecting the user to that value as a URL is the folliowing inside chanedmenu.js:
Code:
function goListGroup(){
for (i=arguments.length-1;i>=0; i--){
if (arguments[i].selectedIndex!=-1){
var selectedOptionvalue=arguments[i].options[arguments[i].selectedIndex].value
if (selectedOptionvalue!=""){
if (onclickaction=="alert")
alert(selectedOptionvalue)
else if (newwindow==1)
window.open(selectedOptionvalue)
else
window.location=selectedOptionvalue
break
}
}
}
}
This is untested, but try modifying the above to:
Code:
function goListGroup(){
for (i=arguments.length-1;i>=0; i--){
if (arguments[i].selectedIndex!=-1){
var selectedOptionvalue=arguments[i].options[arguments[i].selectedIndex].value
if (selectedOptionvalue!=""){
alert('detail.php?query2=' + selectedOptionvalue) // change alert to location= to redirect
}
}
}
}
This should alert the value "detail.php?query2=" PLUS the selected OPTION"s value attribute value. When you want it to redirect instead, just change alert()
to location=
Bookmarks