리자

ajax modal window (ajax 모달창)

· 16년 전 · 5350

/*********************************************************************************
* 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,785
15년 전 조회 1,746
15년 전 조회 1,890
15년 전 조회 1,584
15년 전 조회 3,983
15년 전 조회 2,895
15년 전 조회 2,082
15년 전 조회 1,659
15년 전 조회 1,895
15년 전 조회 2,376
15년 전 조회 1,459
15년 전 조회 2,393
15년 전 조회 1,726
15년 전 조회 1,822
15년 전 조회 1,477
15년 전 조회 2,167
15년 전 조회 1,497
15년 전 조회 1,912
15년 전 조회 2,105
16년 전 조회 1,180
16년 전 조회 1,240
16년 전 조회 1,886
16년 전 조회 5,328
16년 전 조회 1,631
16년 전 조회 2,139
16년 전 조회 2,340
16년 전 조회 1,488
16년 전 조회 1,297
16년 전 조회 2,212
16년 전 조회 4,926
16년 전 조회 2,201
16년 전 조회 2,857
16년 전 조회 1,738
16년 전 조회 3,592
16년 전 조회 4,429
16년 전 조회 3,099
16년 전 조회 2,343
16년 전 조회 2,425
16년 전 조회 2,673
16년 전 조회 2,162
16년 전 조회 5,504
16년 전 조회 3,355
16년 전 조회 1,347
16년 전 조회 1,694
16년 전 조회 5,064
16년 전 조회 2,299
16년 전 조회 3,405
16년 전 조회 2,638
16년 전 조회 1,557
16년 전 조회 5,351
16년 전 조회 2,465
16년 전 조회 5,958
16년 전 조회 1,933
16년 전 조회 4,009
16년 전 조회 3,025
16년 전 조회 2,209
16년 전 조회 2,229
16년 전 조회 4,403
16년 전 조회 3,289
16년 전 조회 2,827
16년 전 조회 2,962
16년 전 조회 2,078
16년 전 조회 1,765
16년 전 조회 1,674
16년 전 조회 1,398
16년 전 조회 1,668
16년 전 조회 1,897
16년 전 조회 1,587
16년 전 조회 4,837
16년 전 조회 3,819
16년 전 조회 1,785
16년 전 조회 1,528
16년 전 조회 2,267
16년 전 조회 4,511
16년 전 조회 3,537
16년 전 조회 2,575
16년 전 조회 4,332
16년 전 조회 3,201
16년 전 조회 1,349
16년 전 조회 1,367
16년 전 조회 2,031
16년 전 조회 1,878
16년 전 조회 2,554
16년 전 조회 2,226
16년 전 조회 1,357
16년 전 조회 4,377
16년 전 조회 1,472
16년 전 조회 1,776
16년 전 조회 2,198
16년 전 조회 3,832
16년 전 조회 2,729
16년 전 조회 1,484
16년 전 조회 4,007
16년 전 조회 1,390
16년 전 조회 1,574
16년 전 조회 1,237
16년 전 조회 1,711
16년 전 조회 1,609
16년 전 조회 1,626
16년 전 조회 1,417
🐛 버그신고