问题描述
我在网上发现了一个在IE标签中打开网址的脚本。这个例子工作得很好。
I found a script online that opens URLs in IE tabs. The example worked perfectly.
我用我的工作URL替换了示例URL,它工作正常,直到我输入6个URL。
I replaced the example URLs with my work URLS and it worked fine until I put in 6 URLs.
Windows脚本宿主
Windows Script Host
脚本:C:\ Users \ Mike \Desktop \URL.js
Script: C:\Users\Mike\Desktop\URL.js
第25行
字符9
错误:未指定错误
代码:80004005
Code: 80004005
来源:(null)
有人可以帮我纠正这段代码吗?我需要它在星期一之前工作
Can someone help me with correcting this code? I need it for work by Monday
谢谢
迈克
var navOpenInNewWindow = 0x1;
var navOpenInNewWindow = 0x1;
var navOpenInNewTab = 0x800;
var navOpenInNewTab = 0x800;
var navOpenInBackgroundTab = 0x1000;
var navOpenInBackgroundTab = 0x1000;
var intLoop = 0;
var intLoop = 0;
var intArrUBound = 0;
var intArrUBound = 0;
var navFlags = navOpenInBackgroundTab;
var navFlags = navOpenInBackgroundTab;
var arrstrUrl = new Array(5);
var arrstrUrl = new Array(5);
var objIE;
var objIE;
intArrUBound = arrstrUrl.length;
intArrUBound = arrstrUrl.length;
arrstrUrl [0] =" https://collaborate.wellpoint.com/sites/retentionresource/sitepages/home-reorg.aspx" ;;
arrstrUrl[0] = "https://collaborate.wellpoint.com/sites/retentionresource/sitepages/home-reorg.aspx";
arrstrUrl [1] =" https://callcare.wellpoint.com/ccb-wgs/login.asp" ;;
arrstrUrl[1] = "https://callcare.wellpoint.com/ccb-wgs/login.asp";
arrstrUrl [2] =" https://brokerportal.anthem.com/ehb/web/bkr/acc/login.htm?wlp-brand = anthem" ;;
arrstrUrl[2] = "https://brokerportal.anthem.com/ehb/web/bkr/acc/login.htm?wlp-brand=anthem";
;  arrstrUrl [3] =" https://paybill.princetonecom.com/cgi/wellpointEC-bin/vortex.cgi" ;;
arrstrUrl[3] = "https://paybill.princetonecom.com/cgi/wellpointEC-bin/vortex.cgi";
arrstrUrl [4] =" http://hipaaapps.corp.anthem.com/airscorp/aspx/searchindividual.aspx" ;;
arrstrUrl[4] = "http://hipaaapps.corp.anthem.com/airscorp/aspx/searchindividual.aspx";
arrstrUrl [5] =" https://portal.056d.dedicated.lync.com/wellpoint/meet/jennifer.hoover/L1P87C47" ;;
arrstrUrl[5] = "https://portal.056d.dedicated.lync.com/wellpoint/meet/jennifer.hoover/L1P87C47";
objIE = new ActiveXObject(" InternetExplorer.Application");
objIE = new ActiveXObject("InternetExplorer.Application");
objIE.Navigate2(arrstrUrl [0]);
objIE.Navigate2(arrstrUrl[0]);
for(intLoop = 1; intLoop< = intArrUBound; intLoop ++){
for (intLoop=1;intLoop<=intArrUBound;intLoop++) {
&NBSP; objIE.Navigate2(arrstrUrl [intLoop],navFlags);
objIE.Navigate2(arrstrUrl[intLoop], navFlags);
}
}
objIE.Visible = true;
objIE.Visible = true;
objIE = null;
objIE = null;
推荐答案
您还可以花时间学习JavaScript并尝试弄清楚您为何破坏了脚本。也许您的网址太多。 你似乎有一个太短的数组。
You can also spend time learning JavaScript and try to figure out why you have broken the scrip. Perhaps you have too many URLs. You seem to have an array that is too short.
这篇关于获取未指定运行脚本时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!