对了,就连浏览这个csdn的帖子页面,一样的跳出脚本错误(语法错误),你们有碰到么?偶现在对XML还不是很感兴趣,没工夫去研究怎么回事。

解决方案 »

  1.   

    csdn这个帖子页面的语法错误出在第1行,调试器打不开无法读入出错的脚本。不过偶的经验,多半是被装入解释器的不是真正的JS脚本而是别的什么东西,所以第1行就报错。
      

  2.   

    正常浏览也弹出错误提示吗?

    http://expert.csdn.net/Expert/topic/2553/2553090.xml?temp=.8481104
      

  3.   

    不会是你的机器有问题吧,起码csdn上我没碰见错误,你在哪页碰见错误?
      

  4.   

    正常浏览。 你说csdn啊? 每个topic的详情页面都报语法错误。
    包括这个页面。sina是首页就报错 www.sina.com.cn ,原因我上面说了。
      

  5.   

    没见过。新浪、蓝色经典和CSDN都是访问量比较大的网站,脚本不该出错,你试试换台机器,我估计也是你的机器的问题
      

  6.   

    是啊,所以我怀疑他们在服务器端验证什么东西,可是正常浏览他能验证什么?这几个页面都不止一个外包js文件的,其他js文件都没问题,就我说的那一两个js有问题。其中蓝色经典的那个出错的js文件明显是用来设置它的表单中一个隐藏域的,没有这个js文件,就不能发帖子,呵呵
      

  7.   

    你的IE问题吧.升级你的IE看看
      

  8.   

    换台机器肯定没问题的,我知道。要不别人怎么能发帖子呢?呵呵偶就是想知道什么原因而已。另外忘了说了: 我安装了M$ 提供的所有不管是XP还是IE补丁,Nortorn也是随时更新的。
      

  9.   

    再说了,偶的是IE 6.0,不至于这些网站最低支持6.5?有没有6.5啊?不向下兼容?要不偶用winsock直接去取这些js文件试一下算了,看看能不能弄回来。——当然,如果大家都没碰到过偶的问题也没有解决办法的话。
      

  10.   

    http://expert.csdn.net/Expert/topic/2608/2608092.xml
      

  11.   

    不是,中级的。
    同一个页面的其他js文件都能下载。要不谁把 www.blueidea.com/js/adbanner.js 这个文件贴出来给偶看看?
      

  12.   

    有些防火墙软件能够拦截弹出式窗口(大多是广告)
    我上次装了一个防火墙,发现它自动把那些代码注释掉了
    我改了选项也没有用,第二天我就换了防火墙软件.我估计你的问题出在那些JS有弹出窗口,给防火墙软件拦截了
    没有弹出窗口的JS就过来了。
    你说呢?
      

  13.   

    恩,这个可能性不大。Norton可以拦截弹出窗口,但是norton需要你自己去设定要拦截的广告,它一向对拦截广告不是主动进行的。我装了google工具条,但是google拦截的状态可以看到,拦截了几个窗口什么的都有,而且它应该是在代码执行后,在WebBowser产生的BeforeNewWin事件中进行Cancel来拦截的,可是偶根本没有看到代码。最奇怪的还是有问题的js文件在cache中是一幅GIF图片! 即使js进行加密后传过来的文件看起来象一张(或者说隐藏在该图片中),至少可以看到调用解密的控件或其他外部相关代码,但是什么也没有。简单的说,如果对方服务器发送的是一个静态的js文件,它出现不正常的机会几乎没有,偶尔一两次可以解释为服务器错误。但是一贯如是就不对劲了。控制js的cache为空的做法目前就偶所知,只能是src=执行文件,然后执行文件来想干嘛干嘛,例如发送怪异的header什么的,呵呵。所以特希望谁能把我提到的几个js文件源码给贴出来。(偶估计碰到偶这样的问题的人不多,所以大多数人应该可以正常访问,也就能从cache找到源码)
      

  14.   

    喏,你要的www.blueidea.com/js/adbanner.js,自己看吧
    <!--  AD rotator script written entirely in JavaScript  -->
    <!--  Written by WenWei, 2002/03/03. E-mail: [email protected]  -->
    <!--  ASP 2 JS Written by 小荷, 2003/05/28. E-mail: [email protected]  -->
    <!--  Member Of Blueidea Web Team. -->
    <!--  Welcome to www.blueidea.com. -->function runCode()  //定义一个运行代码的函数,
    {
      var code=event.srcElement.parentElement.children[0].value;//即要运行的代码。
      var newwin=window.open('','','');  //打开一个窗口并赋给变量newwin。
      newwin.opener = null // 防止代码对论谈页面修改
      newwin.document.write(code);  //向这个打开的窗口中写入代码code,这样就实现了运行代码功能。
      newwin.document.close();
    }function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }function MM_showHideLayers() { //v3.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
        obj.visibility=v; }
    }// AD Banner object
    function ADBanner(){
      this.htmlcode  = "";// Non image banner's html code
      this.href      = "";// Link's href attrib
      this.imgsrc    = "";// Image's src attrib
      this.imgwidth  = "";// Image's width attrib
      this.imgheight = "";// Image's height attrib
      this.imgalt    = "";// Image's alt attrib
      this.imgborder = "";// Image's border attrib
      this.weight    = 1;// Banner's show weight
      this.place     = 1// Banner's place
      this.type      = 1;// Banner's type
    }// Make Banner objects array
    function CreatBanners(aBanners, aNum){
      for( var i=0; i<aNum; i++ ){
        aBanners[i] = new ADBanner();
      }
    }// Show banner
    function showbanner(aPlace, aType, aBannerID)
    {
      var amount = ADBanners.length;
      var includeList = new Array(amount);  if (!document.usedBanners){
        document.usedBanners = new Array(amount);
    for (var i=0; i<amount; i++)
          document.usedBanners[i] = -1;
      }
     
      var usedList = document.usedBanners;  if (arguments.length == 2){
        var j = 0;
        var sum = 0;
    for(var i=0; i<amount; i++){
    if (ADBanners[i].place == aPlace && ADBanners[i].type == aType){
    if (usedList[i] != i){
      includeList[j] = i;
          j++;
              sum = sum + ADBanners[i].weight;
        }
      }
     }
        if (sum <= 0)
      return;
        var rndNum = Math.round(Math.random() * sum);    i = 0;
        j = 0;
        while (true) {
          j = j + ADBanners[includeList[i]].weight;
          if (j >= rndNum)
            break;
          i++;
        }    i = includeList[i];
      }
      else{
    if (aBannerID >= 0 && aBannerID < amount)
          i = aBannerID;
    else
      return;
      }  usedList[i] = i;  if (ADBanners[i].htmlcode == "")
        document.write('<A HREF="'+ ADBanners[i].href +'" target=_blank><IMG SRC="'+ ADBanners[i].imgsrc +'" WIDTH="'+ ADBanners[i].imgwidth +'" HEIGHT="'+ ADBanners[i].imgheight +'" ALT="'+ ADBanners[i].imgalt +'" BORDER="'+ ADBanners[i].imgborder +'"></A>');
      else
        document.write(ADBanners[i].htmlcode);
    }
      

  15.   


    var ADBanners = new Array();CreatBanners(ADBanners, 32);ADBanners[0].imgsrc    = "/gg/pstxg/txglogo.gif";
    ADBanners[0].href = "http://www.pstxg.com";
    ADBanners[0].imgwidth  = "88";
    ADBanners[0].imgheight = "31";
    ADBanners[0].imgalt    = "图像谷";
    ADBanners[0].weight    = 10;
    ADBanners[0].place= 1;
    ADBanners[0].type = 1;ADBanners[1].imgsrc    = "/gg/junsea/logo.gif";
    ADBanners[1].href = "http://www.junsea.com";
    ADBanners[1].imgwidth  = "88";
    ADBanners[1].imgheight = "31";
    ADBanners[1].imgalt    = "六月海";
    ADBanners[1].weight    = 10;
    ADBanners[1].place= 1;
    ADBanners[1].type = 1;ADBanners[2].imgsrc    = "/gg/mobiusclub/logo.gif";
    ADBanners[2].href = "http://www.mobiusclub.com";
    ADBanners[2].imgwidth  = "88";
    ADBanners[2].imgheight = "31";
    ADBanners[2].imgalt    = "莫比斯俱乐部";
    ADBanners[2].weight    = 10;
    ADBanners[2].place= 1;
    ADBanners[2].type = 1;ADBanners[3].imgsrc    = "/gg/huya/huya_logo.gif";
    ADBanners[3].href = "http://www.huya.net";
    ADBanners[3].imgwidth  = "88";
    ADBanners[3].imgheight = "31";
    ADBanners[3].imgalt    = "huya";
    ADBanners[3].weight    = 10;
    ADBanners[3].place= 1;
    ADBanners[3].type = 1;ADBanners[4].imgsrc    = "/gg/flashsky/logo.gif";
    ADBanners[4].href = "http://www.flashsky.com";
    ADBanners[4].imgwidth  = "88";
    ADBanners[4].imgheight = "31";
    ADBanners[4].imgalt    = "闪客天地";
    ADBanners[4].weight    = 10;
    ADBanners[4].place= 1;
    ADBanners[4].type = 1;ADBanners[5].imgsrc    = "/gg/fwcn/fire.gif";
    ADBanners[5].href = "http://www.fwcn.com";
    ADBanners[5].imgwidth  = "88";
    ADBanners[5].imgheight = "31";
    ADBanners[5].imgalt    = "点燃灵感";
    ADBanners[5].weight    = 10;
    ADBanners[5].place= 1;
    ADBanners[5].type = 1;ADBanners[6].imgsrc    = "/gg/goeway/goeway.gif";
    ADBanners[6].href = "http://www.goeway.com";
    ADBanners[6].imgwidth  = "88";
    ADBanners[6].imgheight = "31";
    ADBanners[6].imgalt    = "goEway.com - 从不懂上网,到上网指南";
    ADBanners[6].weight    = 10;
    ADBanners[6].place= 1;
    ADBanners[6].type = 1;ADBanners[7].imgsrc    = "/gg/topidea/topidealogo.jpg";
    ADBanners[7].href = "http://www.topidea.org";
    ADBanners[7].imgwidth  = "88";
    ADBanners[7].imgheight = "31";
    ADBanners[7].imgalt    = "头脑风暴";
    ADBanners[7].weight    = 10;
    ADBanners[7].place= 1;
    ADBanners[7].type = 1;ADBanners[8].imgsrc    = "/gg/websheji/logo.gif";
    ADBanners[8].href = "http://www.websheji.com";
    ADBanners[8].imgwidth  = "88";
    ADBanners[8].imgheight = "31";
    ADBanners[8].imgalt    = "websheji";
    ADBanners[8].weight    = 10;
    ADBanners[8].place= 1;
    ADBanners[8].type = 1;ADBanners[9].imgsrc    = "/gg/blueidea/cloudybook.gif";
    ADBanners[9].href = "/news/book/2003/1169.asp";
    ADBanners[9].imgwidth  = "533";
    ADBanners[9].imgheight = "104";
    ADBanners[9].imgalt    = "Photoshop影像制作精萃";
    ADBanners[9].weight    = 10;
    ADBanners[9].place= 2;
    ADBanners[9].type = 2;ADBanners[10].imgsrc    = "/gg/blogcn/ad1.gif";
    ADBanners[10].href = "http://www.blogcn.com/signupv3.asp";
    ADBanners[10].imgwidth  = "120";
    ADBanners[10].imgheight = "60";
    ADBanners[10].imgalt    = "Blogcn.com";
    ADBanners[10].weight    = 10;
    ADBanners[10].place= 3;
    ADBanners[10].type = 3;
      

  16.   

    ADBanners[11].imgsrc    = "/gg/chinavisual/ad_interv_120.gif";
    ADBanners[11].href = "http://www.interv.com.cn";
    ADBanners[11].imgwidth  = "120";
    ADBanners[11].imgheight = "60";
    ADBanners[11].imgalt    = "《视觉·互动》电子杂志周刊版";
    ADBanners[11].weight    = 10;
    ADBanners[11].place= 3;
    ADBanners[11].type = 3;ADBanners[12].imgsrc    = "/gg/idc2008/208X33.gif";
    ADBanners[12].href = "http://www.idc2008.com/index5.htm";
    ADBanners[12].imgwidth  = "208";
    ADBanners[12].imgheight = "32";
    ADBanners[12].imgalt    = "虚拟主机,主机托管";
    ADBanners[12].weight    = 1;
    ADBanners[12].place= 4;
    ADBanners[12].type = 4;ADBanners[13].imgsrc    = "/gg/blueidea/dwmx.gif";
    ADBanners[13].href = "/news/book/2003/52.asp";
    ADBanners[13].imgwidth  = "468";
    ADBanners[13].imgheight = "60";
    ADBanners[13].imgalt    = "Dreamweaver MX 插件使用大全";
    ADBanners[13].weight    = 1;
    ADBanners[13].place= 5;
    ADBanners[13].type = 5;ADBanners[14].imgsrc    = "/gg/idc2008/750X802.gif";
    ADBanners[14].href = "http://www.idc2008.com/index5.htm";
    ADBanners[14].imgwidth  = "750";
    ADBanners[14].imgheight = "80";
    ADBanners[14].imgalt    = "虚拟主机,主机托管";
    ADBanners[14].weight    = 20;
    ADBanners[14].place= 6;
    ADBanners[14].type = 6;ADBanners[15].htmlcode  = '<a href=http://www.idc2008.com/index5.htm target=_blank><font color=red>idc2008.com 急速空间 299元 = 300M 空间 + 送域名 + 邮箱</font></a>';
    ADBanners[15].weight    = 5;
    ADBanners[15].place= 7;
    ADBanners[15].type = 7;ADBanners[16].htmlcode  = '<a href=http://www.zzy.cn target=_blank><font color=red>中资源 350元=域名+200M主机+50M邮箱+20个二级域名</font></a>';
    ADBanners[16].weight    = 5;
    ADBanners[16].place= 7;
    ADBanners[16].type = 7;ADBanners[17].imgsrc    = "/gg/kdt/468.gif";
    ADBanners[17].href = "http://www.kdt.cn/kdt/introduce.php";
    ADBanners[17].imgwidth  = "468";
    ADBanners[17].imgheight = "60";
    ADBanners[17].weight    = 10;
    ADBanners[17].place= 5;
    ADBanners[17].type = 5;ADBanners[18].htmlcode  = '<a target=_blank href=http://bbs.blueidea.com/articleimg/gift/2003_Xmas.rar><font color=red>设计大补丸 一千张圣诞节设计素材</font></a>';
    ADBanners[18].weight    = 10;
    ADBanners[18].place= 10;
    ADBanners[18].type = 7;ADBanners[19].imgsrc    = "/gg/quester/468.gif";
    ADBanners[19].href = "http://www.blueidea.com/download/product/2003/627.asp";
    ADBanners[19].imgwidth  = "468";
    ADBanners[19].imgheight = "60";
    ADBanners[19].imgalt    = "ColorKey Xp ";
    ADBanners[19].weight    = 1;
    ADBanners[19].place= 5;
    ADBanners[19].type = 5;ADBanners[20].imgsrc    = "/gg/qycity/blueidea.gif";
    ADBanners[20].href = "http://www.qycity.com";
    ADBanners[20].imgwidth  = "208";
    ADBanners[20].imgheight = "32";
    ADBanners[20].imgalt    = "起点都市";
    ADBanners[20].weight    = 1;
    ADBanners[20].place= 4;
    ADBanners[20].type = 4;ADBanners[21].imgsrc    = "/gg/ccjsj/2.jpg";
    ADBanners[21].href = "http://www.ccjsj.com";
    ADBanners[21].imgwidth  = "760";
    ADBanners[21].imgheight = "85";
    ADBanners[21].imgalt    = "长城计算机学校";
    ADBanners[21].weight    = 10;
    ADBanners[21].place= 6;
    ADBanners[21].type = 6;ADBanners[22].htmlcode  = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="533" height="104"><param name=movie value="/gg/iriver/banner.swf"><PARAM NAME=wmode VALUE=opaque><param name=quality value=high><embed src="/gg/iriver/banner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="533" height="104"></embed> </object>';
    ADBanners[22].weight    = 110;
    ADBanners[22].place= 2;
    ADBanners[22].type = 2;ADBanners[23].htmlcode  = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="468" height="60"><param name=movie value="/gg/flash8/pepsi46860.swf"><PARAM NAME=wmode VALUE=opaque><param name=quality value=high><embed src="/gg/flash8/pepsi46860.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"></embed> </object>';
    ADBanners[23].weight    = 10;
    ADBanners[23].place= 5;
    ADBanners[23].type = 5;ADBanners[24].imgsrc    = "/gg/94cool/logo1.gif";
    ADBanners[24].href = "http://www.v9a.com";
    ADBanners[24].imgwidth  = "88";
    ADBanners[24].imgheight = "31";
    ADBanners[24].imgalt    = "v9a";
    ADBanners[24].weight    = 10;
    ADBanners[24].place= 1;
    ADBanners[24].type = 1;
      

  17.   

    ADBanners[25].imgsrc    = "/gg/wacom/q1.gif";
    ADBanners[25].href = "http://www.blueidea.com/common/searchbykey.asp?keyword=wacom";
    ADBanners[25].imgwidth  = "208";
    ADBanners[25].imgheight = "32";
    ADBanners[25].imgalt    = "新建 wacom 专区";
    ADBanners[25].weight    = 10;
    ADBanners[25].place= 4;
    ADBanners[25].type = 4;ADBanners[26].imgsrc    = "/gg/aougu/aougu.gif";
    ADBanners[26].href = "http://www.aougu.com";
    ADBanners[26].imgwidth  = "88";
    ADBanners[26].imgheight = "31";
    ADBanners[26].imgalt    = "奥古多媒体";
    ADBanners[26].weight    = 10;
    ADBanners[26].place= 1;
    ADBanners[26].type = 1;ADBanners[27].imgsrc    = "/gg/7yue/logo.gif";
    ADBanners[27].href = "http://www.7yue.com";
    ADBanners[27].imgwidth  = "88";
    ADBanners[27].imgheight = "31";
    ADBanners[27].imgalt    = "7yue";
    ADBanners[27].weight    = 10;
    ADBanners[27].place= 1;
    ADBanners[27].type = 1;ADBanners[28].imgsrc    = "/gg/easy121/logo.gif";
    ADBanners[28].href = "http://www.easy121.com";
    ADBanners[28].imgwidth  = "88";
    ADBanners[28].imgheight = "31";
    ADBanners[28].imgalt    = "鸡蛋工作室";
    ADBanners[28].weight    = 10;
    ADBanners[28].place= 1;
    ADBanners[28].type = 1;ADBanners[29].imgsrc    = "/gg/52flash/logo.gif";
    ADBanners[29].href = "http://www.52flash.net";
    ADBanners[29].imgwidth  = "88";
    ADBanners[29].imgheight = "31";
    ADBanners[29].imgalt    = "我爱 flash";
    ADBanners[29].weight    = 10;
    ADBanners[29].place= 1;
    ADBanners[29].type = 1;ADBanners[30].htmlcode  = '<script src=/scrollup.js id=js_scroll_content></script><script src=/js/scroll.js></script>';
    ADBanners[30].weight    = 20;
    ADBanners[30].place= 7;
    ADBanners[30].type = 7;ADBanners[31].htmlcode  = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="750" height="80"><param name=movie value="/gg/donggua/newbanner.swf"><PARAM NAME=wmode VALUE=opaque><param name=quality value=high><embed src="/gg/donggua/newbanner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="750" height="80"></embed> </object>';
    ADBanners[31].weight    = 10;
    ADBanners[31].place= 9;
    ADBanners[31].type = 6;
      

  18.   

    thx.偶这个机子上的很多东西是sensitive 的info.结贴了,结贴了.不好意思,csdn每贴只能送100分,另外1000分已经另外开贴子送掉了 :-)
      

  19.   

    哎呀,好象这个js文件不干什么事哦... ;:-(谁能够进入blueidea的登录页面,然后地址栏: javascript: alert(document.forms(0).innerHTML)看那个隐藏域的value是什么.好象是服务器赋的值,生成页面的时候就赋值了. 难道偶的机子阻止了某种特别的session?或者没有发送Refer过去?不可能的呀...