对了,就连浏览这个csdn的帖子页面,一样的跳出脚本错误(语法错误),你们有碰到么?偶现在对XML还不是很感兴趣,没工夫去研究怎么回事。
解决方案 »
- javascript改变TextField的值
- 新手求教
- JS问题
- 为什么火狐上不能同时运行两个函数
- Array.prototype.slice.call开个贴子!看看这玩意是什么东西!网上看到的不太明白。
- easyui dialog内容信息不在parent中创建
- 对阿信"可输入的下拉框第二版"改进版本,自定义控件名称,接口调用简化,非常方便。欢迎大家使用,本人mail:[email protected]
- 一个超级奇怪的问题----在线给分
- 请问如何在同一个表单里把前2个表单元素的值给第3个表单元素?
- 请教一个算法问题
- 怎么关闭含有框架的窗口
- 这是什么document.getElementById
:
http://expert.csdn.net/Expert/topic/2553/2553090.xml?temp=.8481104
包括这个页面。sina是首页就报错 www.sina.com.cn ,原因我上面说了。
同一个页面的其他js文件都能下载。要不谁把 www.blueidea.com/js/adbanner.js 这个文件贴出来给偶看看?
我上次装了一个防火墙,发现它自动把那些代码注释掉了
我改了选项也没有用,第二天我就换了防火墙软件.我估计你的问题出在那些JS有弹出窗口,给防火墙软件拦截了
没有弹出窗口的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);
}
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;
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;
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;