亲宝软件园·资讯

展开

js 强制弹出窗口代码研究-又一款代码

人气:0

复制代码 代码如下:

<script language="JavaScript">
var paypopupURL = "//www.qb5200.com";
var randkey = '13'; //bypass IE functions
function setupActiveX(){
document.write(' <INPUT ID="autoHit" TYPE="TEXT" ONKEYPRESS="showActiveX()">');
}
function openActiveX(){
document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(randkey).substring(1)));
}
function showActiveX(){
var newWindow=window.open(paypopupURL,'abcdefg','width=200,height=200,top=50,left='+(screen.width-250));
}
setupActiveX();
openActiveX();
self.focus();
</script>

加载全部内容

相关教程
猜你喜欢
用户评论