I have created most of the code however I would like to expand my options. Basically the code changes an image when a user makes a selection from a drop down menu.
<head>
<script language="javascript">
function linkrotate(which){
var mylinks=new Array()
mylinks[0]="http://www.#.com"
mylinks[1]="http://www.#.com"
mylinks[2]="http://www.#.com"
window.location=mylinks[which]
}
function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}
//-->
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><form name="mygallery"><p><select
name="picture" size="1" onChange="showimage()">
<option selected value="image1.jpg">Option 1</option>
<option value="image2.jpg">Option 2</option>
<option value="image3.jpg">Option 3</option>
</select></p>
</form>
What I would like to do it have two drop down menus that work together instead of one - providing a more accurate image for the user. Right now the user has one option to select from the drop down menu in which the image is changed. I’d like to be able to have the user choose from two drop down menus.
For example:
Drop down menu number 1
Shoe Color: Black or Red
Drop down menu number 2
Shoelace Color: White or Brown
Where a user chooses ‘Black’ from the first option then the images will only show a black shoe with white laces or brown laces (based on their choice from the next drop-down menu. Furthermore, where a user chooses ‘Red’ from the first option then image from the next choice will only show a red shoe with white or brown laces.
Suggestions? Guidance? Help?