欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

自寫簡(jiǎn)單JS判斷是否已經(jīng)彈出頁(yè)面

 更新時(shí)間:2010年10月20日 15:14:42   作者:  
朋友要做個(gè)廣告彈出記錄,不能用COOKIE記錄是否彈出,用判斷返回值跟判斷是否窗口最小化記錄不準(zhǔn)確,自己寫了以下簡(jiǎn)單的JS判斷是否彈出頁(yè)面不知道朋友那里能記錄不,希望對(duì)用的住的人有所幫助
代碼如下:
復(fù)制代碼 代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無(wú)標(biāo)題文檔</title>
</head>
<script language="JavaScript1.2" type="text/JavaScript1.2">
var test=0;
function testShowWindow()
{
//禁用了activex控件你就不記錄哈
if(test)
{
if(!test.closed){
alert('窗口彈出了');
test.close();
}else{
alert('沒(méi)有彈出噶');
}
}
//這個(gè)你加到 沒(méi)有彈出時(shí)再?gòu)棾隹纯茨?
test = window.open('http://sc.jb51.net','test','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=400,height=600,left=100,top=100');
//這里你可以記錄哈 (可在彈出時(shí)記錄)
}
</script>
</head>
<body>
<a href="#" onClick="javascript:testShowWindow();"><input type="button" name="" value="彈出窗口" onClick="javascript:testShowWindow();"></a>
<body>
</body>
</html>

相關(guān)文章

最新評(píng)論