API

  • data(Object): the data u'll post to modaldialog.
  • buttonText(String): button text.
  • okEvent(Function): button event.
  • initWidth(Interger): the init width of modaldialog.
  • title(String): title of modaldialog.
  • content(String): content of the modaldialog(u can use html tags).
  • overlayCss(Object): the css of overlay.
  • jmodalbgCss(Object): the css of modaldialog background(used to generate shadow).
  • jmodalCss(Object): the css of modaldialog.
  • closeCss(Object): the css of close anchor.
  • titleCss(Object): the css of title.
  • contentCss(Object):the css of content.
  • bottomCss(Object): the css of modaldialog bottom.
  • buttonCss(Object): the css of ok button.

 

 

$.fn.jmodal({      title: 'Information',  
    content: 
'Hi,you displayed me?',   
    buttonText: 
'Yes,It\'s me',   
    okEvent: function(e) {   
       alert(
'jmodal\'ll be closed after u click me:-)' );
    }   
});   

 

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2022-02-16
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2021-12-08
  • 2021-07-09
  • 2022-01-27
  • 2021-04-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案