Code (Note: you need to add jquery.js)
1 <script type="text/javascript"> 2 var a_idx = 0; 3 jQuery(document).ready(function($) { 4 $("body").click(function(e) { 5 var a = new Array("富强", "民主", "文明", "和谐", "自由",Equality"" , " Fair " , " law " , " patriotic " , " dedicated " , " integrity " , " Friendly " ); . 6 var $ I = $ ( " <span /> " ) .text (A [a_idx]); . 7 a_idx = (a_idx + . 1 ) % a.length; . 8 var X = e.pageX, . 9 Y = e.pageY; 10 $i.css({ 11 "z-index": 999999999999999999999999999999999999999999999999999999999999999999999, 12 "top": y - 20, 13 "left": x, 14 "position": "absolute", 15 "font-weight": "bold", 16 "color": "#ff6651" 17 }); 18 $("body").append($i); 19 $i.animate({ 20 "top": y - 180, 21 "opacity": 0 22 }, 23 1500, 24 function() { 25 $i.remove(); 26 }); 27 }); 28 }); 29 </script>
Reprinted from: https://www.cnblogs.com/ningjiabing/p/10566384.html