<a href="http://www.baidu.com" id="change" onmouseover="change1()" onmouseout="change2()">改变前</a>
<script>
change1() {
document.getElementById("change").innerHTML = "改变后1";
}
change2() {
document.getElementById("change").innerHTML = "改变后2";
}
</script>