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

时间:2010-03-20    点击:140   

复制代码 代码如下:

<script language="JavaScript">
var paypopupURL = "http://www.jb51.net";
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>

javascript中的new使用
javascript 操作select下拉列表框的一点小经验
js 格式化时间日期函数小结
window.location.hash 属性使用说明
对 lightbox JS 图片控件进行了一下改造, 使其他支持复杂的图片说明
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved