Chủ đề: xin code chuột 4r đang sài --------------------------------------------------
Post bài sai Box nha bạn. (Nhắc nhở lần 1)
Cho code sau vào trang html
Code:
if ((document.getElementById) && window.addEventListener || window.attachEvent){
(function(){
//Configure here...
var xCol = "#7E9EE5"; var yCol = "#E27B14"; var zCol = "#15D108"; var n = 5; //number of dots per trail. var t = 40; //setTimeout speed. var s = 0.15; //effect speed.
//End.
var r,h,w; var d = document; var my = 10; var mx = 10; var stp = 0; var evn = 360/3; var vx = new Array(); var vy = new Array(); var vz = new Array(); var dy = new Array(); var dx = new Array();
var pix = "px";
var strictmod = ((document.compatMode) && document.compatMode.indexOf("CSS") != -1);
var domWw = (typeof window.innerWidth == "number"); var domSy = (typeof window.pageYOffset == "number"); var idx = d.getElementsByTagName('div').length;
for (i = 0; i < n; i++){ var dims = (i+1)/2; d.write('<\/div>'
+'<\/div>'
+'<\/div>'); }
if (domWw) r = window; else{ if (d.documentElement && typeof d.documentElement.clientWidth == "number" && d.documentElement.clientWidth != 0) r = d.documentElement; else{ if (d.body && typeof d.body.clientWidth == "number") r = d.body; } }
function winsize(){ var oh,sy,ow,sx,rh,rw; if (domWw){ if (d.documentElement && d.defaultView && typeof d.defaultView.scrollMaxY == "number"){ oh = d.documentElement.offsetHeight; sy = d.defaultView.scrollMaxY; ow = d.documentElement.offsetWidth; sx = d.defaultView.scrollMaxX; rh = oh-sy; rw = ow-sx; } else{ rh = r.innerHeight; rw = r.innerWidth; } h = rh; w = rw; } else{ h = r.clientHeight; w = r.clientWidth; } }
function scrl(yx){ var y,x; if (domSy){ y = r.pageYOffset; x = r.pageXOffset; } else{ y = r.scrollTop; x = r.scrollLeft; } return (yx == 0)?y:x; }
function mouse(e){ var msy = (domSy)?window.pageYOffset:0; if (!e) e = window.event; if (typeof e.pageY == 'number'){ my = e.pageY - msy + 16; mx = e.pageX + 6; } else{ my = e.clientY - msy + 16; mx = e.clientX + 6; } if (my > h-65) my = h-65; if (mx > w-50) mx = w-50; }