日期:2014-05-17  浏览次数:20983 次

如何在ASP中实现光棒显示效果
我用的是一个table从数据库中读取的数据表显示的,如何在里面假如光棒效果,就是鼠标放上去table的背景色改变,字体颜色变化更好。是ASP实现的,不是ASP.NET里的GradeView

------解决方案--------------------
<tr bgcolor= "#ffffff " onMouseOver= "this.bgColor= '#99CC66 ' " onMouseOut= "this.bgColor= '#ffffff ' " align= "center " style= "cursor:hand ">
------解决方案--------------------
要改变字体的话,用CLASS就可以了
如:
<tr bgcolor= "#ffffff " onMouseOver= "this.className= 'ss ' " onMouseOut= "this.className= 'bb ' " align= "center " style= "cursor:hand ">
然后,你再定义样式SS,BB就可以了