리자

ajax modal window (ajax 모달창)

· 16년 전 · 5358

/*********************************************************************************
* dialog
**********************************************************************************/
function openBox(width, height, border, goURL , modal){
 if($(window.document).find('#dialog').size() <= 0){
  var html = "<div id='dialog' style='width:"+width+"px;height:'"+height+"px';margin:0px 0px;>"
     + "<iframe id='myiframe' name='myiframe' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0' width='95%' height='98%'></iframe>"
     + "</div>";
   
  $("body").append(html);
 }
 
 $('#myiframe').attr('src', goURL);
 
 jQuery("#dialog").dialog({
            modal: false,
            autoOpen: false,
            width: width + 10,
            height : height,
            dialogClass: "openBoxCss",
            overlay: {opacity: 0.5, background: "black"}
    });
    jQuery("#dialog").dialog({autoOpen: false});
 jQuery("#dialog").dialog("open");
 $("#dialog").dialog({
  open:function() {
   $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar-close").remove();
    }
 });
 
    return false;
}

function closeBox(){
 var d = $(window.document).find('#dialog');
 d.dialog( "close" );
 d.dialog( "destroy" );
 d.remove();
 0
}

[출처] AJAX 모달창 |작성자 super_style

[이 게시물은 관리자님에 의해 2011-10-31 16:55:28 jQuery에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
15년 전 조회 1,795
15년 전 조회 1,754
15년 전 조회 1,900
15년 전 조회 1,596
15년 전 조회 3,994
15년 전 조회 2,906
15년 전 조회 2,089
15년 전 조회 1,668
15년 전 조회 1,904
15년 전 조회 2,383
15년 전 조회 1,467
15년 전 조회 2,399
15년 전 조회 1,735
15년 전 조회 1,836
15년 전 조회 1,490
15년 전 조회 2,176
15년 전 조회 1,505
15년 전 조회 1,923
16년 전 조회 2,112
16년 전 조회 1,186
16년 전 조회 1,251
16년 전 조회 1,898
16년 전 조회 5,338
16년 전 조회 1,636
16년 전 조회 2,148
16년 전 조회 2,348
16년 전 조회 1,498
16년 전 조회 1,307
16년 전 조회 2,221
16년 전 조회 4,935
16년 전 조회 2,211
16년 전 조회 2,867
16년 전 조회 1,748
16년 전 조회 3,599
16년 전 조회 4,440
16년 전 조회 3,105
16년 전 조회 2,351
16년 전 조회 2,433
16년 전 조회 2,682
16년 전 조회 2,170
16년 전 조회 5,510
16년 전 조회 3,365
16년 전 조회 1,359
16년 전 조회 1,701
16년 전 조회 5,075
16년 전 조회 2,309
16년 전 조회 3,412
16년 전 조회 2,646
16년 전 조회 1,565
16년 전 조회 5,359
16년 전 조회 2,476
16년 전 조회 5,967
16년 전 조회 1,943
16년 전 조회 4,016
16년 전 조회 3,034
16년 전 조회 2,217
16년 전 조회 2,236
16년 전 조회 4,404
16년 전 조회 3,300
16년 전 조회 2,835
16년 전 조회 2,972
16년 전 조회 2,089
16년 전 조회 1,770
16년 전 조회 1,682
16년 전 조회 1,404
16년 전 조회 1,678
16년 전 조회 1,904
16년 전 조회 1,596
16년 전 조회 4,847
16년 전 조회 3,827
16년 전 조회 1,795
16년 전 조회 1,538
16년 전 조회 2,275
16년 전 조회 4,519
16년 전 조회 3,547
16년 전 조회 2,583
16년 전 조회 4,342
16년 전 조회 3,205
16년 전 조회 1,354
16년 전 조회 1,376
16년 전 조회 2,039
16년 전 조회 1,884
16년 전 조회 2,563
16년 전 조회 2,235
16년 전 조회 1,365
16년 전 조회 4,384
16년 전 조회 1,480
16년 전 조회 1,785
16년 전 조회 2,210
16년 전 조회 3,843
16년 전 조회 2,739
16년 전 조회 1,492
16년 전 조회 4,014
16년 전 조회 1,395
16년 전 조회 1,578
16년 전 조회 1,247
16년 전 조회 1,720
16년 전 조회 1,619
16년 전 조회 1,634
16년 전 조회 1,423
🐛 버그신고