4eaf2ddc12b4050e0dc1f28056f778e8f5f72419.svn-base
773 Bytes
var toolIDMAS = "";
//获取工具插件ID
var fileName = "importMAS.js";
var isLoadMAS = false;
var scripts = document.getElementsByTagName("script");
for (var i = 0; i < scripts.length; i++) {
var src = scripts[i].src;
if (src.indexOf(fileName) !== -1) {
src = src.substring(src.lastIndexOf(fileName
+ "?") + (fileName.length + 1));
var array = src.split("&");
for (var j = 0; j < array.length; j++) {
var finalObj = array[j].split("=");
if (finalObj[j] == "toolId")
toolIDMAS = finalObj[j + 1]; //iD
}
}
}
loadjscssfile("/lib/styleMAS.css", "css", toolIDMAS);
loadjscssfile("/lib/ArrowHandle.js", "js", toolIDMAS); //ID
loadjscssfile("/js/MilStdArrow.js", "js", toolIDMAS); //ID