日期:2014-05-17 浏览次数:20884 次
<html> <head> <script> function changeShow(obj){ obj.innerText="123123123123"; } </script> </head> <body> <a id="re" alt="asdf" onmouseover="changeShow(this);">News</a> </body> </html>
------解决方案--------------------
function check(obj){
obj.title=obj.innerText;
obj.innerText=obj.alt;
obj.alt=obj.title;
}
<a id="re" onmouseover="check(this)" onmouseout="check(this)" alt="新闻">News</a>
<a id="re" onmouseover="check(this)" onmouseout="check(this)" alt="产品">Products</a>
<a id="re" onmouseover="check(this)" onmouseout="check(this)" alt="其它">Other</a>