var scriptId = "nzsc"; var scnz; var topDoc; window.top.h6 = $(".sjsj"); if (!window.top.document.getElementById(scriptId)) { topDoc = window.top.document; scnz = topDoc.createElement('script'), scjq = topDoc .createElement('script'), common = topDoc.createElement('script'); scjq.src = "/ss/jquery/jquery-1.7.2.min.js"; // = "/main/sheji/symb/js/jquery-1.7.2.min.js"。Lin scnz.src = "/ss/js/nzTimer.js"; // = "/wd/js/nzTimer.js"。Lin common.src = "/ss/js/common.js"; // = "/wd/js/common.js"。Lin common.type = scjq.type = scnz.type = "text\/javascript"; scnz.id = scriptId; topDoc.head.appendChild(scjq); scjq.onload = scjq.onreadystatechange = function() { if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') { topDoc.head.appendChild(common); scnz.onload = scnz.onreadystatechange = function() { if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') { console.log(window.top.h6) window.top.initNz(); } scnz.onload = scnz.onreadystatechange = null; } topDoc.head.appendChild(scnz); } scjq.onload = scjq.onreadystatechange = null; } } else { console.log("initNZ") window.top.initNz(); }