Selecting Image to Display in Form

[Total: 0    Average: 0/5]

The select list enables the user to choose which image to display.

Head Code:

function showimage(_form)
  var _obj=document.getElementById("pic");
  var _file=_form.sel1.options[_form.sel1.selectedIndex].value;

Body Code:

<select name=sel1 onchange="showimage(this.form)">
<option value="">Image 1</option>
<option value="">Image 2</option>
<option value="">Image 3</option>
<option value="">Image 4</option>

<input type=text name=test value="">
<img id='pic' src='' name='pictures'>

Times Viewed: 4

Leave a Reply

Your email address will not be published. Required fields are marked *