아래를 추가해서 사용하세요.
var loadingPanel = new yuiLoadingPanel();
//loadingPanel.show();
//loadingPanel.show("Processing...");
//loadingPanel.hide();
The user can close the loading box by clicking on the cancel link. If you want to handle this situation, you can subscribe to the cancelEvent:
loadingPanel.cancelEvent.subscribe(function(e, a, o){
alert('You clicked cancel!');
});
$D = YAHOO.util.Dom;
$E = YAHOO.util.Event;
var yuiLoadingPanel = function(conf){
conf = conf == undefined ? new Array() : conf;
conf.id = conf.id == undefined ? 'yuiLoadingPanel':confi.id;
conf.header = conf.header == undefined ? 'Loading, please wait...':conf.header;
conf.width = conf.width == undefined ? '240px':conf.width;
this.conf = conf;
this.cancelEvent = new YAHOO.util.CustomEvent("cancelEvent", this);
this.init();
};
yuiLoadingPanel.prototype = {
init:function(){
var loadingPanel = new YAHOO.widget.Panel(this.conf.id,{
width:this.conf.width,
fixedcenter:true,
close:false,
draggable:false,
modal:true,
visible:false
});
loadingPanel.setBody(this.conf.header +
'<img src="http://us.i1.yimg.com/us.yimg.com/i/us/per/gr/gp/rel_interstitial_loading.gif" />');
loadingPanel.render(document.body);
$D.addClass(loadingPanel.id, 'tcc_lightboxLoader');
var cancelLink = document.createElement('a');
$D.setStyle(cancelLink, 'cursor', 'pointer');
cancelLink.appendChild(document.createTextNode('Cancel'));
$E.on(cancelLink, 'click', function(e, o){
o.self.loadingPanel.hide();
o.self.cancelEvent.fire();
}, {self:this});
loadingPanel.appendToBody(document.createElement('br'));
loadingPanel.appendToBody(cancelLink);
$D.setStyle(loadingPanel.body, 'text-align', 'center');
$D.addClass(document.body, 'yui-skin-sam');
this.loadingPanel = loadingPanel;
},
show:function(text){
if(text != undefined){
this.loadingPanel.setHeader(text);
}else{
this.loadingPanel.setHeader(this.conf.header);
}
this.loadingPanel.show();
},
hide:function(){
this.loadingPanel.hide();
}
};게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7230 | 11년 전 | 3633 | ||
| 7229 | 11년 전 | 3758 | ||
| 7228 | 11년 전 | 3795 | ||
| 7227 | 11년 전 | 3918 | ||
| 7226 | 11년 전 | 2371 | ||
| 7225 | 11년 전 | 17460 | ||
| 7224 |
AngryDev
|
11년 전 | 1366 | |
| 7223 |
돌아온깡통
|
11년 전 | 1112 | |
| 7222 |
돌아온깡통
|
11년 전 | 1055 | |
| 7221 |
돌아온깡통
|
11년 전 | 887 | |
| 7220 |
돌아온깡통
|
11년 전 | 1008 | |
| 7219 |
돌아온깡통
|
11년 전 | 839 | |
| 7218 |
돌아온깡통
|
11년 전 | 669 | |
| 7217 |
돌아온깡통
|
11년 전 | 1059 | |
| 7216 |
돌아온깡통
|
11년 전 | 796 | |
| 7215 |
돌아온깡통
|
11년 전 | 715 | |
| 7214 |
돌아온깡통
|
11년 전 | 1065 | |
| 7213 |
돌아온깡통
|
11년 전 | 936 | |
| 7212 |
돌아온깡통
|
11년 전 | 722 | |
| 7211 |
돌아온깡통
|
11년 전 | 879 | |
| 7210 |
돌아온깡통
|
11년 전 | 902 | |
| 7209 |
돌아온깡통
|
11년 전 | 895 | |
| 7208 |
돌아온깡통
|
11년 전 | 1012 | |
| 7207 |
돌아온깡통
|
11년 전 | 626 | |
| 7206 |
돌아온깡통
|
11년 전 | 687 | |
| 7205 |
돌아온깡통
|
11년 전 | 873 | |
| 7204 |
돌아온깡통
|
11년 전 | 736 | |
| 7203 |
돌아온깡통
|
11년 전 | 748 | |
| 7202 |
돌아온깡통
|
11년 전 | 725 | |
| 7201 |
돌아온깡통
|
11년 전 | 679 | |
| 7200 |
돌아온깡통
|
11년 전 | 710 | |
| 7199 |
돌아온깡통
|
11년 전 | 1330 | |
| 7198 |
돌아온깡통
|
11년 전 | 660 | |
| 7197 |
돌아온깡통
|
11년 전 | 977 | |
| 7196 |
돌아온깡통
|
11년 전 | 886 | |
| 7195 |
돌아온깡통
|
11년 전 | 621 | |
| 7194 |
돌아온깡통
|
11년 전 | 652 | |
| 7193 |
돌아온깡통
|
11년 전 | 715 | |
| 7192 |
돌아온깡통
|
11년 전 | 747 | |
| 7191 |
joe031
|
11년 전 | 1275 | |
| 7190 | 11년 전 | 4162 | ||
| 7189 | 11년 전 | 1254 | ||
| 7188 |
잘살아보자
|
11년 전 | 969 | |
| 7187 | 11년 전 | 1450 | ||
| 7186 |
kiplayer
|
11년 전 | 7556 | |
| 7185 | 11년 전 | 1144 | ||
| 7184 |
잘살아보자
|
11년 전 | 2344 | |
| 7183 |
잘살아보자
|
11년 전 | 1157 | |
| 7182 |
잘살아보자
|
11년 전 | 1225 | |
| 7181 | 11년 전 | 1495 | ||
| 7180 |
하얀비요일
|
11년 전 | 991 | |
| 7179 |
잘살아보자
|
11년 전 | 996 | |
| 7178 | 11년 전 | 987 | ||
| 7177 | 11년 전 | 1011 | ||
| 7176 | 11년 전 | 1667 | ||
| 7175 |
|
11년 전 | 1050 | |
| 7174 |
kiplayer
|
11년 전 | 1181 | |
| 7173 | 11년 전 | 961 | ||
| 7172 |
잘살아보자
|
11년 전 | 4647 | |
| 7171 |
잘살아보자
|
11년 전 | 714 | |
| 7170 | 11년 전 | 1080 | ||
| 7169 |
초심의설렘
|
11년 전 | 1475 | |
| 7168 | 11년 전 | 1011 | ||
| 7167 |
잘살아보자
|
11년 전 | 5291 | |
| 7166 |
잘살아보자
|
11년 전 | 3444 | |
| 7165 | 11년 전 | 4961 | ||
| 7164 | 11년 전 | 838 | ||
| 7163 | 11년 전 | 1213 | ||
| 7162 |
울라라라우
|
11년 전 | 1398 | |
| 7161 | 11년 전 | 1269 | ||
| 7160 |
skyler
|
11년 전 | 1193 | |
| 7159 |
|
11년 전 | 714 | |
| 7158 |
|
11년 전 | 3360 | |
| 7157 |
잘살아보자
|
11년 전 | 2896 | |
| 7156 |
잘살아보자
|
11년 전 | 2230 | |
| 7155 |
잘살아보자
|
11년 전 | 1461 | |
| 7154 |
잘살아보자
|
11년 전 | 1451 | |
| 7153 | 11년 전 | 2902 | ||
| 7152 |
울라라라우
|
11년 전 | 832 | |
| 7151 | 11년 전 | 1068 | ||
| 7150 |
잘살아보자
|
11년 전 | 2388 | |
| 7149 |
잘살아보자
|
11년 전 | 3300 | |
| 7148 |
잘살아보자
|
11년 전 | 1198 | |
| 7147 |
잘살아보자
|
11년 전 | 769 | |
| 7146 |
잘살아보자
|
11년 전 | 1410 | |
| 7145 |
잘살아보자
|
11년 전 | 725 | |
| 7144 |
잘살아보자
|
11년 전 | 1319 | |
| 7143 |
잘살아보자
|
11년 전 | 766 | |
| 7142 |
잘살아보자
|
11년 전 | 1460 | |
| 7141 |
잘살아보자
|
11년 전 | 1202 | |
| 7140 |
잘살아보자
|
11년 전 | 2021 | |
| 7139 |
잘살아보자
|
11년 전 | 3685 | |
| 7138 |
잘살아보자
|
11년 전 | 3181 | |
| 7137 |
잘살아보자
|
11년 전 | 3635 | |
| 7136 |
잘살아보자
|
11년 전 | 1390 | |
| 7135 |
gooroo
|
11년 전 | 1617 | |
| 7134 |
열라뽕똬이
|
11년 전 | 2324 | |
| 7133 |
|
11년 전 | 1025 | |
| 7132 | 11년 전 | 1434 | ||
| 7131 | 11년 전 | 3579 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기