<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>图片切换</title>
<script language="javascript">
function changePic(value){
document.getElementById("Image").src = value;
}
function changeid(value1){
document.getElementById("href").href = value1;
}
</script>
</head><body>
<select name="select" onChange="changePic(this.options[this.selectedIndex].value)"
onclick="changeid(this.options[this.selectedIndex].value1);">
<option value="http://bbs.bc-cn.net/UploadFace/129498.jpg" value1="http://www.126.com">图片一
</option>
<option value="http://bbs.bc-cn.net/Images/userface/image1.jpg" value1="http://www.163.com">图片
二</option>
<option value="http://bbs.bc-cn.net/UploadFace/12078.gif" value1="http://www.tom.com">图片三
</option>
<option value="http://bbs.bc-cn.net/UploadFace/23789.jpg" value1="http://www.webcomely.com">图片
四</option>
</select>
<BR><BR>
<a href="http://www.163.com" id="href" target="_blank"><img src="http://bbs.bc-
cn.net/UploadFace/129498.jpg" id="Image" width="120" height="120" borh="120" height="120"
border="0"></a>
<br><br>
<script language="javascript">
function qq(value){
document.getElementById("Image1").src = value;
}
function q(value2){
document.getElementById("href").href = value2;
}
</script>
<select name="select" onChange="qq(this.options[this.selectedIndex].value)" onclick="q
(this.options[this.selectedIndex].value1);">
<option value="http://bbs.bc-cn.net/UploadFace/129498.jpg" value2="http://www.126.com">图片一
</option>
<option value="http://bbs.bc-cn.net/Images/userface/image1.jpg" value2="http://www.163.com">图片
二</option>
<option value="http://bbs.bc-cn.net/UploadFace/12078.gif" value2="http://www.tom.com">图片三
</option>
<option value="http://bbs.bc-cn.net/UploadFace/23789.jpg" value2="http://www.webcomely.com">图片
四</option>
</select>
<BR><BR>
<a href="http://www.163.com" id="href" target="_blank"><img src="http://bbs.bc-
cn.net/UploadFace/129498.jpg" id="Image1" width="120" height="120" borh="120" height="120"
border="0"></a>
</body>
</html>