change Html to:
<select ...... onChange="showimage( this )">
<option value="me.gif">.....</opti
here is the function:
function showimage( selRef ) // selRef is a reference to the select element
{
var selectedValue = sel.options[sel.selectedIn
document.images.pictures.s
}
I changed the value of your first option so that the user would get the original picture if they go back to the first option after changing it. (i.e user selects "Traditional Breakup" and gets the "std_breakup.gif", then selects the "Select Muntin Bar Type" back and gets the original image back).
Hope that helps
Main Topics
Browse All Topics





by: VGRPosted on 2003-07-18 at 14:58:40ID: 8955637
1) name your SELECT =... to set the value...
2) in the JScript, use document.thename.src.value