回复 4# paboy 的帖子
空间商的JS代码在这了:
document.write("<form id=\"pop_a\" name=\"pop_a\" action=\"http://www.01www.com/sy.html\" target=\"_blank\" method=\"get\"><input name=\"from\" id=\"from\" value=\"free\" type=\"hidden\" /></form>");
function opa() {
var Then = new Date();
Then.setTime(Then.getTime(5) + 1*60*60*1000);
var cookieString = new String(document.cookie);
var cookieHeader = "www01w=";
var beginPosition = cookieString.indexOf(cookieHeader);
if (beginPosition != -1) { } else {
document.cookie = "www01w=popup;path=/;expires="+ Then.toGMTString();
document.getElementById('pop_a').submit();
window.focus();
}
}
window.document.onclick = opa; //响应Onclick事件
//window.onload = opa; //响应Onload事件,不过可能会被部分浏览器插件屏蔽