View Full Version : Show images whenever selected in a combo box
PeterL
09-05-2002, 03:35 PM
I have created a combo box containing the names of images in the directory images on my server. I need to display the selected images whenever selected in the combo box. Please help me!
x_goose_x
09-05-2002, 04:19 PM
<select size="1" onchange="document.getElementById('imagchng').setAttribute('src',this.value);">
<option value="moon.jpg">Image One</option>
<option value="sun.jpg">Image Two</option>
<option value="star.jpg">Image Three</option>
</select>
<img id="imagchng" src="default.jpg">
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.