jQuery(document).ready(function ($) { $("html,body").click(function (e) { // var n = Math.round(Math.random() * 100); var n = 1; var $i = $("").text("+" + n); var x = e.pageX, y = e.pageY; $i.css({ "z-index": 99999, "top": y - 20, "left": x, "position": "absolute", "color": "#fff" // "color": "#C6B0EA" }); $("body").append($i); $i.animate({ "top": y - 80, "opacity": 0 }, 1500, function () { $i.remove(); }); e.stopPropagation(); }); });