So right now when a user clicks on
option 2 your ShowPic() function is executed. Which then assigns the value of the selection to a variable and changes the ShowRoom picture. The problem is the value is 2. So
>> Clicks 2
ShowPic(2);
document.ShowRoom.src = 2
URL of picture = 2.
Basically you just need to append the "images/variableXX.jpg" to the src. Here is how:
Code:
<script language="javascript">
<!--
function ShowPic(sImage)
{
document.ShowRoom.src = "images/variable" + sImage + ".jpg";
}
// -->
</script>
An easier option would be to just change the value of your select. For Example:
Code:
<option value="images/variable1.jpg">Option 1</option>