var IDS //动态载入文件 var Treload = { objCkVer : "pklam", objFailTime : 0, check: function() { if ( window.gJsVer != Treload.objCkVer ) { Treload.objFailTime++; return false; } return true; }, re_js: function( js, path ) { if ( !Treload.check() ) { path = path || "js/"; document.write( [""].join( "" ) ); } }, re_css: function( css, path ) { if ( !Treload.check() ) { path = path || "css/"; document.write( [""].join( "" ) ); } } }; //框架载入 var tempIFrameArr=new Array(); var iFrameObjArr=new Array(); function createIFrame(id,url){ if(!tempIFrameArr[id] && document.createElement){ tempIFrameArr[id]=document.createElement("iframe"); tempIFrameArr[id].setAttribute('id',id); tempIFrameArr[id].setAttribute('name',id); tempIFrameArr[id].src=url; tempIFrameArr[id].style.width=0+"px"; tempIFrameArr[id].style.height=0+"px"; iFrameObjArr[id]=document.body.appendChild(tempIFrameArr[id]); //alert(iFrameObjArr[id].contentWindow.document.body) } else{ tempIFrameArr[id].src=url+"?"+Math.random(); } } //载入样式表 Treload.re_css( "inc.css","/css/"); Treload.re_css( "index.css","/css/"); //载入对话框 Treload.re_js( "dialog.js" , "/msgbox/") //载入ajax模块 Treload.re_js( "ajax.js","/js/") //载入窗口关闭/刷新处理函数 Treload.re_js( "ser_login.js" ,"/js/"); //载入广告模块 Treload.re_js( "adv.js","/adv/")