<script language=javascript>
<!--
function changebutton()
{
window.event.srcElement.src="2.gif";
}
//-->
</script>
<html>
<body>
<form name="form">
<input type="image" src="1.gif" onmouseover="changebutton()">
</form>
</body>
</html>
<!--
function changebutton()
{
window.event.srcElement.src="2.gif";
}
//-->
</script>
<html>
<body>
<form name="form">
<input type="image" src="1.gif" onmouseover="changebutton()">
</form>
</body>
</html>
<!--
function changebutton()
{
document.all.mxh.src="新的图片地址";
}
//-->
</script>
<html>
<body>
<form name="form">
<input id="mxh" type="image" name="submit" src="图片地址" onmouseover="changebutton()">
</form>
</body>
</html>
<!--
function changebutton()
{
document.form.myButton.src="新的图片地址";
}
//-->
</script>
<html>
<body>
<form name="form">
<input type="image" name="myButton" src="图片地址" onmouseover="changebutton()">
</form>
</body>
</html>
<!--
function changebutton()
{
document.all("aaa").src="新的图片地址";
}
//-->
</script>
<html>
<body>
<form name="form">
<input type="image" name="aaa" src="图片地址" onmouseover="changebutton()">
</form>
</body>
</html>这样可以的。
<body>
<form name="show">
<input type="image" name="xy" src="hay.jpg" onmouseover=this.src="pengyou.jpg" onmouseout=this.src="hay.jpg">
</form>
</body>
</html>