- 3/5
- 1
- 2
- 3
- 4
- 5
织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!
鼠标移到表格上,表格的背景图片会变换,很实用的特效,这里是用到CSS+JS结合完成的,背景图片可自选,这里只是演示一下。
<html> <head> <title>鼠标滑向表格,变换背景图片</title> <meta http-equiv="mrc-Type" mrc="text/html;charset=gb2312"> <body> <table border="1"> <tr> <td style="background-image:url('http://mb5u.com/jscss/demoimg/bgdemo1.jpg');width:300;height:300;" onmouseover="this.style.backgroundImage='url(http://mb5u.com/jscss/demoimg/bgdemo2.jpg)'" onmouseout="this.style.backgroundImage='url(http://mb5u.com/jscss/demoimg/bgdemo1.jpg)'"></td> </tr> </table> </body> </html>