大致就是这样,只是把img的src换一下
<script language="javascript">
function ShowImg(img)
{
var imgObj=document.getElementById("cloths");
imgObj.src=img;
}
</script>
<input type="button" value="正面" onClick="ShowImg('正面.jpg')">
<input type="button" value="反面" onClick="ShowImg('反面.jpg')">
<img src="正面.jpg" id="cloths">
[此贴子已经被作者于2006-8-25 15:34:27编辑过]