4f2f8155ea32913d03077f1689811c34e1a6bd14.svn-base 705 Bytes
var toolIdFF = "";
//获取工具插件ID
var fileName = "importFF.js";
var isLoadFF = 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")
                toolIdFF = finalObj[j + 1]; //iD
        }
    }
}

loadjscssfile("/lib/styleFF.css", "css", toolIdFF);
loadjscssfile("/js/FlashFeatures.js", "js", toolIdFF); //ID