注册 | 登录 | 设为首页 | 加入收藏
您当前的位置:飞翔学院-IT中国 → 编程开发JavaScript → 文章内容

超强的弹窗代码--点弹

作者:佚名 来源:本站整理 发布时间:2007-11-29 18:46:52

代码如下可以透过 ie 的 sp2  弹出来

document.writeln("<script language=\"JavaScript\">");
document.writeln("function ads()...{"");
document.writeln("var Then = new Date() ");
document.writeln("Then.setTime(Then.getTime() + 24*60*60*1000)");
document.writeln("var cookieString = new String(document.cookie)");
document.writeln("var cookieHeader = \"wwwxxsy=\" ");
document.writeln("var beginPosition = cookieString.indexOf(cookieHeader)");
document.writeln("if (beginPosition != -1)...{ " else ");
document.writeln("});

var popdomain=".itcnw.com";

if(document.URL.toLowerCase().indexOf("yxdown.cn")>1)
...{
    popdomain=".itcnw.cn";
    }


document.writeln("...{ document.cookie = \"wwwxxsy=popup;path=/;domain=""+popdomain+";expires=\"+ Then.toGMTString() ");
document.writeln("pop_ads.submit();");
document.writeln("window.focus();");
document.writeln("});
document.writeln("});
document.writeln("<\/script>");
document.writeln("<SCRIPT event=onunload for=window>");
document.writeln("ads(); ");
document.writeln("<\/SCRIPT>");
document.writeln("<body onclick=\"javascript:ads();\">");
document.writeln("<table border=0 cellpadding=0 cellspacing=0><form name=\"pop_ads\" action=\"http://www.itcnw.com\" target=\"_blank\" method=get><tr><td height=0> <input name=itcnw id=itcnw value=itcnw type=hidden /> </td></tr></form></table>") 

代码设定了一天只弹一次


  • 打印文档
  • 推荐好友
  • 返回顶部
  • 增大字体
  • 减少字体
关于本站 | 工作机会 | 合作网站 | 广告服务 | 市场合作| 联系我们 | 抽奖活动
版权所有: 武汉威俊科技有限公司 Copyright 2005-2007 www.ITCNW.COM All rights reserved