mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 13:52:24 +09:00
ajax로딩 메세지/ 팝업메뉴/ 원본이미지 보여주는 html elements들을 javascript내에서 동적으로 처리하도록 변경. ajax로딩시 flash animation추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3986 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fa0d5a885f
commit
ff2320404d
5 changed files with 36 additions and 15 deletions
|
|
@ -20,8 +20,28 @@ function exec_xml(module, act, params, callback_func, response_tags, callback_fu
|
|||
if(typeof(response_tags)=="undefined" || response_tags.length<1) response_tags = new Array('error','message');
|
||||
|
||||
var waiting_obj = xGetElementById("waitingforserverresponse");
|
||||
if(!waiting_obj) {
|
||||
waiting_obj = xCreateElement('DIV');
|
||||
waiting_obj.id = 'waitingforserverresponse';
|
||||
waiting_obj.style.visibility = 'hidden';
|
||||
document.body.appendChild(waiting_obj );
|
||||
}
|
||||
|
||||
if(show_waiting_message && waiting_obj) {
|
||||
xInnerHtml(waiting_obj, wating_message);
|
||||
var str = ''+
|
||||
'<div style="float:left; width:80px; height:80px; overflow:hidden;">'+
|
||||
'<object id="load_next" width="80" height="80" align="middle" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">'+
|
||||
'<param value="sameDomain" name="allowScriptAccess"/>'+
|
||||
'<param value="'+request_uri+'common/tpl/images/loading.swf" name="movie"/>'+
|
||||
'<param value="high" name="quality"/>'+
|
||||
'<param value="transparent" name="wmode"/>'+
|
||||
'<param value="#ffffff" name="bgcolor"/>'+
|
||||
'<embed width="80" height="80" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="load_next" bgcolor="#FFFFFF" quality="high" src="'+request_uri+'common/tpl/images/loading.swf"/>'+
|
||||
'</object>'+
|
||||
'</div>'+
|
||||
'<div style="white-space:nowrap;z-index:1;float:left; padding:32px 20px 0 0; ">'+waiting_message+'</div>';
|
||||
|
||||
xInnerHtml(waiting_obj, str);
|
||||
xTop(waiting_obj, xScrollTop()+20);
|
||||
xLeft(waiting_obj, xScrollLeft()+20);
|
||||
waiting_obj.style.visibility = "visible";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue