WMSSL.extend = { // show loading bar loading:function() { var cssText = ""; var cssObj = document.createElement('style'); var viewObj = document.createElement('div'); var headObj = document.getElementsByTagName('head')[0]; var bodyObj = document.getElementsByTagName('body')[0]; var limitTime = 30; var loadingTimer; if( $('#divWMSSLLoading').length ) { return false; } var timeCheck = function() { if(limitTime > 0 ) { $('#divWMSSLLoading #divWMSSLLoadingTxtSec').html(limitTime); limitTime--; } else { loadingClose(); } } var loadingClose = function() { clearTimeout(loadingTimer); $('#divWMSSLLoading').hide(); } cssText+='#divWMSSLLoading{position:fixed;'; cssText+='_position:absolute;'; cssText+='z-index:1000;'; cssText+='width:100%;'; cssText+='text-align:center;'; cssText+='bottom:0px;'; cssText+='right:0px;'; // OPTION cssText+='background-color:silver;width:115px;height:60px;padding:2px;'; if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){ cssText+="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}"; }else{ cssText+="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}"; } viewObj.innerHTML = "" +"
" +"
" +"
암호화모듈 작동 중....
" +"
" +"
"; cssObj.setAttribute("type", "text/css"); if(cssObj.styleSheet){ cssObj.styleSheet.cssText = cssText; } else { cssObj.appendChild(document.createTextNode(cssText)); } headObj.appendChild(cssObj); bodyObj.appendChild(viewObj); $('#divWMSSLLoading').click(function() { loadingClose(); }); //loadingTimer = setInterval(timeCheck, 1000); } };