【发布时间】:2015-04-28 04:56:00
【问题描述】:
我每天有少量的每日访客 400 人。我计划先创建弹出广告,然后创建弹出广告以在新窗口中打开。它不会激怒游客。
我的新窗口弹出代码
var firstClick = true;
document.body.onclick = function() {
if (firstClick) {
window.open('popup creating website', 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=950, height=650, left = 300, top = 50');
window.open('popup creating second website', 'poppage2', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=950, height=650, left = 200, top = 10');
firstClick = false;
}
}
我打算先点击网页打开新标签。
谢谢
【问题讨论】:
-
PS 如果我可以在弹出窗口或标签中的广告之间进行选择,并且死亡不是一个选项,我宁愿弹出窗口而不是堵塞我所有的标签。
-
@Marty Meh。我只是阻止他们。
-
@Marty 在他们提到的那个页面中,如果我们点击“按钮或名称”,那么只会打开新标签。我的问题是基于页面中的任何位置首先点击打开一个新标签。我试过没有任何工作..
标签: javascript html css