用以下代码.
<script><!-- <BR>c0off = new Image(80,30); c0off.src = "图片1位置"; <BR>c0on = new Image(80,30); c0on.src = "图片2位置"; <BR>function img_act(imgName) <BR>{ <BR>imgOn = eval(imgName+"on.src"); <BR>document[imgName].src = imgOn; <BR>} <br><br>function img_inact(imgName) <BR>{ <BR>imgOff = eval(imgName+"off.src"); <BR>document[imgName].src = imgOff; <BR>} <br><br>function erase() <BR>{ <BR>window.status="网页教学网"; <BR>} <br><br>function moveover(txt) <BR>{ <BR>window.status=txt; <BR>} <BR>// --></script>
onmouseover="img_act('c0');moveover('图片名');return true;"
onmouseout="img_inact('c0');return true;">src="图片1位置" border="0" width="80" style="max-width:90%" name="c0">