Okay... I get your point. I think the most logical thing to do would be to assign source names for each option tag, and then append the src to an image.
So make a new function called returnVal:
Code:
function returnVal(){
for (i=arguments.length-1;i>=0; i--){
if (arguments[i].selectedIndex!=-1){
var selectedOptionvalue=arguments[i].options[arguments[i].selectedIndex].value
if (selectedOptionvalue!=""){
return selectedOptionvalue
}
}
}
}
Then have your first argument the set name:
So:
Code:
<input type="button" onclick="document.getElementById('image').src = returnVal(myset);">
...
<img id="image">
Whereas "myset" is the set name of the select group.
Bookmarks