I don't see any reason to change the iframe ssi script. I cannot easily test it with your setup because it will not work cross domain or from a local page to a domain. However, below I have simplified the function jump(menu) and the way that it is called by the form element. I have also changed the iframe so that it should work OK without the iframe ssi script and probably will work fine with it as well:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Iframe Jump - Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function jump(menu){
var loc_tar=menu.options[menu.selectedIndex].value.split('*');
window.open(loc_tar[0],loc_tar[1]? loc_tar[1] : '_self');
}
</script>
</head>
<body>
<center>
<select name="choice" size="1" onchange="jump(this)">
<option value="http://planet.fastwhb.com/~hangar1/images/pleaseselect.jpg*myframe" selected>- Choose a Date -</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays.jpg*myframe">Wednesday, Jan. 3rd</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays.jpg*myframe">Thursday, Jan. 4th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekend.jpg*myframe">Friday, Jan. 5th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekend2.jpg*myframe">Saturday, Jan. 6th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekend3.jpg*myframe">Sunday, Jan. 7th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays2.jpg*myframe">Monday, Jan. 8th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays2.jpg*myframe">Tuesday, Jan. 9th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays2.jpg*myframe">Wednesday, Jan. 10th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays2.jpg*myframe">Thursday, Jan. 11th</option>
</select><br>
<iframe id="myframe" name="myframe" src="http://planet.fastwhb.com/~hangar1/images/pleaseselect.jpg" scrolling="auto" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" width="160" height="300" style="margin-top:1ex;"></iframe></center>
</body>
</html>
However, for what you are trying to do, show an image on a page depending upon the selection made in a drop down combo box, this is all that is required:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Image Jump - Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function jump(menu){
var loc_tar=menu.options[menu.selectedIndex].value.split('*');
document.images[loc_tar[1]].src=loc_tar[0];
}
</script>
</head>
<body>
<center>
<select name="choice" size="1" onchange="jump(this)">
<option value="http://planet.fastwhb.com/~hangar1/images/pleaseselect.jpg*myimage" selected>- Choose a Date -</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays.jpg*myimage">Wednesday, Jan. 3rd</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays.jpg*myimage">Thursday, Jan. 4th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekend.jpg*myimage">Friday, Jan. 5th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekend2.jpg*myimage">Saturday, Jan. 6th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekend3.jpg*myimage">Sunday, Jan. 7th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays2.jpg*myimage">Monday, Jan. 8th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays2.jpg*myimage">Tuesday, Jan. 9th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays2.jpg*myimage">Wednesday, Jan. 10th</option>
<option value="http://planet.fastwhb.com/~hangar1/weekdays2.jpg*myimage">Thursday, Jan. 11th</option>
</select><br>
<img name="myimage" src="http://planet.fastwhb.com/~hangar1/images/pleaseselect.jpg" border="0" style="margin-top:1ex;"></center>
</body>
</html>
No iframe, no iframe ssi script. Images will resize themselves.
Bookmarks