Hi , I have got a code I need to perform two actions:
1. After choosing an option – the link go button’s target changes – Done.
2. After choosing an option – the picture changes depending on the choice.
Just need help with the second action, the picture does not change.. If anyone could help me with this i’d really appreciate it.
Here it is:
[CODE]<html>
<form name=”jump”>
<select name=”menu”>
<option value=”1″>1</option>
<option value=”2″>2</option>
<option value=”3″>3</option>
</select>
</br></br>
Illustration:</br>
<IMG SRC=”a1.jpg” NAME=”thumbnail” id=”thumbnail” HEIGHT=”400″ WIDTH=”540″>
</br></br>
<SCRIPT LANGUAGE=”JAVASCRIPT” TYPE=”TEXT/JAVASCRIPT”>
var a = document.getElementById(‘menu’).value;
var newImage = a+’.jpg’;
document.getElementById(‘thumbnail’).src = newImage;
</script>
<input type=”button” onClick=”location=document.jump.menu.options[document.jump.menu.selectedIndex].value+’.htm’;” value=”GO”>
</form>
</html>