源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

使用mouse事件实现简单的鼠标经过特效

  • 时间:2022-04-23 08:32 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:使用mouse事件实现简单的鼠标经过特效
代码超级简单,这里就不多BB了,直接奉上
[url=http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script]http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script[/url]> </head> <body>     <h1>鼠标经过下面的块</h1>     <ul>         <li></li>         <li></li>         <li></li>         <li></li>     </ul> </body> </html> <script type="text/javascript">     $("ul li").mouseover(function()     {          $(this).addClass("current");     }).mouseout(function()        {         $(this).removeClass("current");            }); </script>
非常简单的代码,小伙伴们参考下,自由扩展,希望大家能够喜欢。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部