관리 메뉴

HAMA 블로그

깜찍한 Javascript popup 플러그인 본문

Javascript

깜찍한 Javascript popup 플러그인

[하마] 이승현 (wowlsh93@gmail.com) 2015. 5. 21. 11:37


오키에서 소개받은건데 , 이거 좀 큐트한듯~ ㅎㅎ  


http://dinbror.dk/bpopup/ 




Example 1, default: Simple jQuery modal popup with default settings (Hello World popup)
$('element_to_pop_up').bPopup();


Example 5a, content: Simple jQuery popup that loads external html page with ajax. (Ajax popup)
Be aware that due to browser security restrictions, most "Ajax" requests are subject to the same origin policy; the request can't successfully retrieve data from a different domain, subdomain, or protocol.
        $('element_to_pop_up').bPopup({
            contentContainer:'.content',
            loadUrl: 'test.html' //Uses jQuery.load()
        });


Comments