通过引用来抑制javascript弹出窗口?

时间:2013-07-16 19:10:17

标签: javascript colorbox

<!-- Code for Pop-up -->
<script type="text/javascript">
if (document.cookie.indexOf('visited=true') === -1) {
var expires = new Date();
expires.setDate(expires.getDate()+30);
document.cookie = "visited=true; expires="+expires.toUTCString();
$(document).ready(function(){
setTimeout(function(){
$.colorbox({width:"650", height:"680", inline:true, href:"#inline_content"})
}, 3000);
});
}
</script>

以上脚本在我的电子商务网站的长期访问者中首次提供弹出窗口。它位于页脚中,因此可以在任何入口页面上使用。我希望能够做的是如果访问者从我单独的电子邮件活动中跟踪链接,则禁止弹出窗口。有人有推荐吗?也许是在utm标签中识别仍会设置cookie但禁止弹出窗口的内容?

0 个答案:

没有答案