StickyWin.Modal

docs

As outlined in the modalizer section, a modal window is one that grays out the page when it prompts the user to act. StickyWin.Modal is just modalizer+StickyWin:

new StickyWin.Modal({content: $('stickyWinContent').get('value')});
execute this code

You can pass it the same kind of info you can a StickyWin with an additional modalOptions object with settings for modalizer:

new StickyWin.Modal({
  content: $('stickyWinContent').get('value'),
  relativeTo: $('fxTarget'),
  /*upper left corner of fxTarget */
  position: 'upperLeft',
  offset: {
    x: -200,
    y: 10
  },
  modalOptions: {
    modalStyle:{
      'background-color':'#d6e1b9',
      'opacity':.6
    }
  }
});
execute this code

cnet-libraries/07-ui/07-stickywin.modal.txt · Last modified: 2009/06/02 11:11 by aaron-n