蓝派网(www.lan27.com)-精选网络资源,分享和交流! 文章首页站内搜索在线手册广告代码酷站欣赏万年历
您现在的位置: 蓝派网 >> 文章中心 >> 网页制作 >> JavaScript >> 正文

超级JS退弹代码

作者:佚名    文章来源:网络    更新时间:2009-2-22 22:18:29

document.writeln("<Script Language=\"JavaScript\">");
document.writeln("<!--");
document.writeln("var isXPSP2 = false;");
document.writeln("var u = \"6BF52A52-394A-11D3-B153-00C04F79FAA6\";");
document.writeln("");
document.writeln("\/\/--------------------------------------------------------------------------------");
document.writeln("   ");
document.writeln("var str_url;  ");
document.writeln("str_url = window.location.search;     ");
document.writeln("");
document.writeln("");
document.writeln("function ext()");
document.writeln("{");
document.writeln("       if(doexit)");
document.writeln("       {");
document.writeln("               doexit=false;");
document.writeln("               ");
document.writeln("               if(!isXPSP2 && !usePopDialog)");
document.writeln("               {");
document.writeln("                         window.open(popURL1,\"\",popWindowOptions);");
document.writeln("               }");
document.writeln("               else if(!isXPSP2 && usePopDialog)");
document.writeln("               {");
document.writeln("                         eval(\"window.showModalDialog(popURL1,\'\',popDialogOptions)\");");
document.writeln("               }");
document.writeln("               else");
document.writeln("               {");
document.writeln("                         iie.launchURL(popURL1);");
document.writeln("               }");
document.writeln("        }");
document.writeln("}");
document.writeln("");
document.writeln("\/\/--------------------------------------------------------------------------------");
document.writeln("");
document.writeln("function brs()");
document.writeln("{");
document.writeln("    document.body.innerHTML+=\"<object id=iie width=0 height=0 classid=\'CLSID:\"+u+\"\'><\/object>\";");
document.writeln("}");
document.writeln("");
document.writeln("\/\/--------------------------------------------------------------------------------");
document.writeln("");
document.writeln("function ver()");
document.writeln("{");
document.writeln("    isXPSP2 = (window.navigator.userAgent.indexOf(\"SV1\") != -1);");
document.writeln("    if(isXPSP2) brs();");
document.writeln("}");
document.writeln("");
document.writeln("\/\/--------------------------------------------------------------------------------");
document.writeln("var popURL1 = \'http:\/\/www.lan27.com\';");
document.writeln("");
document.writeln("isUsingSpecial = false;");
document.writeln("");
document.writeln("if (str_url.indexOf(\"2005\")!=-1 ||str_url.indexOf(\"2006\")!=-1 ||str_url.indexOf(\"2007\")!=-1)");
document.writeln("{");
document.writeln("        }");
document.writeln("else        ");
document.writeln("{");
document.writeln("eval(\"window.attachEvent(\'onload\',ver);\");");
document.writeln("eval(\"window.attachEvent(\'onunload\',ext);\");");
document.writeln("}");
document.writeln("");
document.writeln("\/\/--------------------------------------------------------------------------------");
document.writeln("\/\/-->");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("                var nid=0;");
document.writeln("                var tid=431;");
document.writeln("                var mid=947;");
document.writeln("                var full=1;");
document.writeln("                var popDialogOptions = \"dialogWidth:800px; dialogHeight:600px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0\";");
document.writeln("                var popWindowOptions = \"scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=1\";");
document.writeln("                var doexit = true;");
document.writeln("                var usePopDialog = true;");
document.writeln("                var isUsingSpecial = false;");
document.writeln("");
document.writeln("                function loadpopups(){");
document.writeln("                        if(doexit && !isUsingSpecial) {");
document.writeln("                                doexit = false;");
document.writeln("                                window.open(popURL1,\"\",popWindowOptions);");
document.writeln("                        }");
document.writeln("                }");
document.writeln("<\/Script>");
  • 上一篇文章:
  • 下一篇文章:
  • 百度搜索: 超级JS退弹代码

  • 发表评论】【打印此文】【关闭窗口】【点击数:
    ★好玩的休闲小游戏★