解释:
<body>
<script type=”text/javascript”>
Function showImg(oSel){
//在此处添加代码
<script type="text/javascript">
function img_chg(img_url){
document.getElementById('img_cont').src =img_url;
}
</script>
}
</script>
<form name=”myForm”>
<img id=”pic” src=”img1.jpg” width=”200” height=”200”/>
<br/>
<select name="sel_name" onchange="showImg(this)">
<option value="img1">城市生活</option>
<option value="img2">都市早报</option>
<option value="img3">青山绿水</option>
</select>
</form>
</body>