아래를 추가해서 사용하세요.
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();
}
};게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 10년 전 | 449 | ||
| 7829 |
|
10년 전 | 636 | |
| 7828 | 10년 전 | 561 | ||
| 7827 | 10년 전 | 457 | ||
| 7826 | 10년 전 | 469 | ||
| 7825 | 10년 전 | 514 | ||
| 7824 | 10년 전 | 470 | ||
| 7823 | 10년 전 | 415 | ||
| 7822 | 10년 전 | 391 | ||
| 7821 | 10년 전 | 332 | ||
| 7820 | 10년 전 | 361 | ||
| 7819 |
|
10년 전 | 765 | |
| 7818 | 10년 전 | 411 | ||
| 7817 | 10년 전 | 573 | ||
| 7816 | 10년 전 | 431 | ||
| 7815 | 10년 전 | 627 | ||
| 7814 | 10년 전 | 467 | ||
| 7813 | 10년 전 | 420 | ||
| 7812 | 10년 전 | 430 | ||
| 7811 | 10년 전 | 411 | ||
| 7810 | 10년 전 | 608 | ||
| 7809 | 10년 전 | 540 | ||
| 7808 | 10년 전 | 418 | ||
| 7807 | 10년 전 | 434 | ||
| 7806 |
프로그래머7
|
10년 전 | 1358 | |
| 7805 | 10년 전 | 1298 | ||
| 7804 |
zahir1312
|
10년 전 | 795 | |
| 7803 |
|
10년 전 | 1397 | |
| 7802 | 10년 전 | 491 | ||
| 7801 | 10년 전 | 881 | ||
| 7800 | 10년 전 | 1101 | ||
| 7799 | 10년 전 | 583 | ||
| 7798 | 10년 전 | 535 | ||
| 7797 | 10년 전 | 551 | ||
| 7796 | 10년 전 | 385 | ||
| 7795 | 10년 전 | 538 | ||
| 7794 | 10년 전 | 583 | ||
| 7793 | 10년 전 | 1079 | ||
| 7792 | 10년 전 | 504 | ||
| 7791 | 10년 전 | 585 | ||
| 7790 | 10년 전 | 525 | ||
| 7789 |
fbastore
|
10년 전 | 1475 | |
| 7788 | 10년 전 | 576 | ||
| 7787 | 10년 전 | 433 | ||
| 7786 | 10년 전 | 639 | ||
| 7785 | 10년 전 | 619 | ||
| 7784 | 10년 전 | 674 | ||
| 7783 | 10년 전 | 489 | ||
| 7782 | 10년 전 | 520 | ||
| 7781 | 10년 전 | 926 | ||
| 7780 | 10년 전 | 840 | ||
| 7779 | 10년 전 | 794 | ||
| 7778 | 10년 전 | 378 | ||
| 7777 | 10년 전 | 492 | ||
| 7776 | 10년 전 | 487 | ||
| 7775 | 10년 전 | 427 | ||
| 7774 | 10년 전 | 640 | ||
| 7773 | 10년 전 | 397 | ||
| 7772 | 10년 전 | 766 | ||
| 7771 | 10년 전 | 418 | ||
| 7770 | 10년 전 | 665 | ||
| 7769 | 10년 전 | 421 | ||
| 7768 | 10년 전 | 643 | ||
| 7767 | 10년 전 | 1201 | ||
| 7766 | 10년 전 | 525 | ||
| 7765 | 10년 전 | 580 | ||
| 7764 |
잘살아보자
|
10년 전 | 427 | |
| 7763 |
|
10년 전 | 1490 | |
| 7762 |
Tosea
|
10년 전 | 1083 | |
| 7761 | 10년 전 | 679 | ||
| 7760 |
잘살아보자
|
10년 전 | 727 | |
| 7759 |
잘살아보자
|
10년 전 | 568 | |
| 7758 |
잘살아보자
|
10년 전 | 625 | |
| 7757 | 10년 전 | 1267 | ||
| 7756 |
ITBANK
|
10년 전 | 1279 | |
| 7755 | 10년 전 | 1940 | ||
| 7754 | 10년 전 | 1090 | ||
| 7753 | 10년 전 | 908 | ||
| 7752 | 10년 전 | 1414 | ||
| 7751 |
잘살아보자
|
10년 전 | 567 | |
| 7750 |
잘살아보자
|
10년 전 | 495 | |
| 7749 |
잘살아보자
|
10년 전 | 517 | |
| 7748 |
잘살아보자
|
10년 전 | 538 | |
| 7747 |
잘살아보자
|
10년 전 | 617 | |
| 7746 |
잘살아보자
|
10년 전 | 695 | |
| 7745 |
잘살아보자
|
10년 전 | 939 | |
| 7744 |
잘살아보자
|
10년 전 | 434 | |
| 7743 | 10년 전 | 964 | ||
| 7742 |
starbros
|
10년 전 | 857 | |
| 7741 |
잘살아보자
|
10년 전 | 699 | |
| 7740 |
잘살아보자
|
10년 전 | 583 | |
| 7739 |
잘살아보자
|
10년 전 | 480 | |
| 7738 |
잘살아보자
|
10년 전 | 558 | |
| 7737 |
잘살아보자
|
10년 전 | 534 | |
| 7736 |
잘살아보자
|
10년 전 | 553 | |
| 7735 |
잘살아보자
|
10년 전 | 886 | |
| 7734 |
잘살아보자
|
10년 전 | 445 | |
| 7733 |
잘살아보자
|
10년 전 | 562 | |
| 7732 |
잘살아보자
|
10년 전 | 724 | |
| 7731 |
잘살아보자
|
10년 전 | 642 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기