if (document.getElementById) {
function alterImg() {
document.body.getElementById('sendimg').src="url('images/tridown.png')";
}
}
然后是html:
<div id="sendbutton">
<img id="sendimg" src="images/tri.png" onclick="alterImg()" />
</div>
我也尝试使用 this 关键字引用,但无济于事。