Code: Code kopieren Der Code lautet wie folgt: http://www.w3.org/1999/xhtml"> jQuery implementiert coole Mausflugbahneffekte window.onload = function () {<br> C = Math.cos; S = Math.sin; = d.width = w.innerWidth; H = d.height = w.innerHeight; c.globalCompositeOperation = "lighter"; "round"; var bool = 0, t = 0; d.onmousemove = function (e) {<br> if (window.T) {<br> if (D == 9) { D = Math.random() * 15; f(1); clearTimeout(T);<br> }<br> X = e.pageX; Y = e.pageY; a = e.pageY / H * 999 >> U = e.pageX / H * 360 >> = Funktion (e) {<br> c.save(); c.globalCompositeOperation = "source-over"; if (e != 1) { c.fillStyle = "rgba(0,0,0,0.02)"; , H); c.restore(); i = 25; while (i--) {<br> c.beginPath(); if (D > 450 || bool) {<br> if (!bool) {bool = 1;🎜> if (D < 0,1) { bool = 0; }<br /> t -= g; D -= 0,1;<br /> }<br /> if (!bool) { t = g; D = 0,1; q = (R / r - 1) * t; x = (R - r) * C(t) D * C(q) (A (X - A) * (i / 25)) (r - R); y = (R - r) * S(t) - D * S(q) (B (Y - B) * (i / 25)); if (a) { c.moveTo(a, b); lineTo(x, y) }<br /> c.StrokeStyle = "hsla(" (U % 360) ",100%,50%,0.75)" c.Stroke();<br /> }<br /> U -= 0,5; A = X; B = Y;<br /> }, 16);<br /> }<br /> j.onkeydown = Funktion (e) { a = b = 0; R = 0,05 }<br /> d.onmousemove({ pageX: 300, pageY: 290 })<br /> } body{margin:0;overflow:hidden}div{padding:1px 5px;background:#333;position:absolute;z-index:2;color:#555;font-family:arial}a{color :#ccf}a:hover{color:red}