当前位置: 代码迷 >> Web前端 >> 鼠标点符号击字体变换
  详细解决方案

鼠标点符号击字体变换

热度:174   发布时间:2012-10-29 10:03:53.0
鼠标点击字体变换
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
   <html>
<head>
<script>
function check(obj){
obj.title=obj.innerText;
obj.innerText=obj.alt;
obj.alt=obj.title;
}

</script>
</head>
<body>
<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>
</body>
</html>


  </body>
</html>

?