以下是引用caiyakang在2005-9-24 0:26:49的发言:
function change(txt)
{
photo.src=txt;
}
</script>
<img name="photo" src="PHOTO/1.jpg" width="168" height="139" >
<form action="diarysave.asp?oq=my" method="post" name="myform">
<select name="zhan_photo" size="1" onchange="change(this.options[selectedIndex].value)">
<% for i=1 to 24%>
<option value="<%=i%>"><%=i%></option>
<%next%>
</from>
他说IMG没定义
</select>
换个名字试试或者用document.photo.src=txt。来试试