I need the dropdown box to look something like this:
- Code: Select all
<select size="7" name="btl" >
<option value="111">1</option>
<option value="112">2</option>
<option value="113">3</option>
<option value="114">4</option>
this is so that when they click submit, the value is just this number, now, the images are saved in a seperate location named 111.gif, 112.gif, etc...
i tried adding this:
- Code: Select all
OnClick=document.arrow.src=this.options[this.selectedIndex].value;
but all it did was change the src in the image to 111 or 112, etc...
how can i get it to change the src in the image to something along these lines:
http://www.mysite.com/images/111.gif and
http://www.mysite.com/images/112.gif accordingly??
any help is appreciated...



