js实现第一次访问站时点击任何地方都先弹出一个广告页
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>js实现第一次访问站时点击任何地方都先弹出一个广告页</title>
</head>
<body>
<!--js实现第一次进站时点任何地方都先弹出一个广告页-->
<script type="text/javascript">
var showAD=function(){
//弹出广告操作
//window.location.href='http://www.cjw123.com'; //原窗口打开
window.open("http://www.cjw123.com");//新窗口打开
//alert(1);
showAD=function(){};
}
document.onmousedown=function(){
showAD();
}
</script>
</body>
</html>