Kod: Salin kod Kod adalah seperti berikut: http://www.w3.org/1999/xhtml"> jQuery melaksanakan kesan trajektori tetikus yang keren window.onload = function () {<br> C = Math.cos; S = Math.sin; U = 0; j = dokumen; = d.lebar = w.innerWidth; H = d.height = w.innerHeight; c.fillRect(0, 0, W, H); "bulat"; var bool = 0, t = 0; jika (tetingkap.T) {<br> jika (D == 9) { D = Math.random() * 15; clearTimeout(T);<br> }<br> X = e.pageX; Y = e.pageY; a = 0; B = Y; e.halamanY / H * 999 >> 0) / 999; = fungsi (e) {<br> c.save(); c.globalCompositeOperation = "source-over"; jika (e != 1) { c.fillStyle = "rgba(0,0,0,0.02)"; , H); }<br> c.restore(); i = 25; manakala (i--) {<br> c.beginPath(); if (D > 450 || bool) {<br> jika (!bool) { bool = 1 }<br> jika (D < 0.1) { bool = 0 }<br /> t -= g; D -= 0.1;<br /> }<br /> jika (!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)); lineTo(x, y) }<br /> c.strokeStyle = "hsla(" (U % 360) ",100%,50%,0.75)"; }<br /> U -= 0.5; A = X; B = Y;<br /> }, 16);<br /> }<br /> j.onkeydown = fungsi (e) { a = b = 0; R = 0.05 }<br /> d.onmousemove({ pageX: 300, pageY: 290 })<br /> }</skrip><br> <style>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}</style><br> </head><br> <badan><br> <div id="text"></div><br> <canvas id="keleyi_com"></canvas><br> </body><br> </html><br> <br><br> <br>Di atas adalah kandungan artikel ini Saya harap anda semua menyukai kesan istimewa ini tidak lama lagi, jadi anda boleh menambah sedikit warna pada halaman utama anda. <br> </div>