• Welcome to Baben's blog that year. I'm glad to meet you at the right age!
  • Due to the theme, the QQ login partner displays the default avatar in the comments. Please go to the personal center to upload the avatar again.

Socialist core values, click js special effect code

Code Notes barben Six years ago (March 11, 2019) 6838 views 1 comment

Now there are so many click special effect codes, but I chose to follow the crowd again because I am a law-abiding and patriotic young man~

Code directly! The JQ library needs to be introduced. If JQuery has been introduced into the code, please delete the first line of the following code

 <script src=" https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js "></script> <script type="text/javascript"> var a_idx = 0; jQuery(document).ready(function($) { $("body").click(function(e) { Var a=new Array ("prosperity", "democracy", "civilization", "harmony", "freedom", "equality", "justice", "rule of law", "patriotism", "dedication", "integrity", "friendliness"); var $i = $("<span/>").text(a[a_idx]); a_idx = (a_idx + 1) % a.length; var x = e.pageX, y = e.pageY; $i.css({ "z-index": 100000000, "top": y - 20, "left": x, "position": "absolute", "font-weight": "bold", "color": "#00afef" }); $("body").append($i); $i.animate({ "top": y - 180, "opacity": 0 }, 1500, function() { $i.remove(); }); }); }); </script>

The mouse click effect is as follows:


Eight blogs that year, we have been
If the author does not indicate that it is an original article, please indicate the link and source of this article for reprinting
Socialist core values, click js special effect code- https://www.barben.cn/code/183.html
Like( sixteen )
Post my comments
Cancel comment
expression Mapping Bold Strike through Center Italic

You need to bring your nickname and email with you in the review of Eight Books that year!

  • Nickname (required)
  • Email (required)
  • website
Successfully captured one Only rare elves
  1. Refer to
    Howard's cabin 2019-08-19 11:54 reply