鼠标特效鼠标点击出现文字效果

鼠标特效鼠标点击出现文字效果

有人应该注意到了,在本站点击鼠标会出现富强”, “民主”, “文明”, “和谐”, “自由”, “平等”, “公正” ,”法治”, “爱国”, “敬业”, “诚信”, “友善”等字眼,有没有很好玩呢
博客网站放置目录都在:footer.php文件

复制下面代码就可以了
文字可以自己修改哦(有看到别人修改王者荣耀的英雄名挺酷)

<!---鼠标点击出现文字特效开始--->
<script type="text/javascript"> var a_idx = 0; jQuery(document).ready(function($) { $("body").click(function(e) { var a = new Arra("💖","富强","💜","民主","💙","文明","💚","和谐","💛","自由","🤎","平等","💗","公正","💜","法治","💖","爱国","💚","敬业","💚","诚信","💖","友善"); var $i = $("<span></span>").text(a[a_idx]); a_idx = (a_idx + 1) % a.length; var x = e.pageX, y = e.pageY; $i.css({ "z-index": 999999999999999999999999999999999999999999999999999999999999999999999, "top": y - 20, "left": x, "position": "absolute", "font-weight": "bold", "font-size": "10px", "animation": "heartbeat .25s infinite .1s", "color": "rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")" }); $("body").append($i); $i.animate({ "top": y - 180, "opacity": 0 }, 1000, function() { $i.remove(); }); }); }); </script>
<!---鼠标点击出现文字特效开始结束--->
温馨提示:本文最后更新于2022-05-12 08:41:54,某些文章具有时效性,若有错误或已失效,请在下方留言或联系乡野博文
您阅读这篇文章共花了: 0小时00分00秒
-----本页内容已结束,喜欢请分享!-----
© 版权声明
THE END
喜欢本站内容,请点【点赞】【分享】和【收藏】~
点赞9 分享
评论 抢沙发

请登录后发表评论