这个问题的核心是实现如下的功能:
一段看起来很普通的文字,当鼠标移动到其上方的时候,鼠标变手型,文字下方出现下滑线。
<span id="span1" style="text-decoration:none" onMouseMove="span1.style.textDecoration='underline';" onMouseOut="span1.style.textDecoration='none';" onClick="window.open('./../../../shouye/shouye.htm','main','');" style="cursor:hand; font-size:12px; width:30px">中能电力科技开发有限公司</span>
特别要注意的是在html中span1.style中的属性名是text-decoration,而在相应的javascript处理程序中,属性名变成了span1.style.textDecoration。
特别注意!