Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A dialog alternative
branch: master

This branch is even with aheinze:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
css
js
index.html
readme.markdown

readme.markdown

Topbox

... a dialog alternative.

Usage

$.topbox.show(content, {
    //settings
    'title'     : false,
    'closeOnEsc': true,
    'theme'     : 'default',
    'height'    : 'auto',
    'width'     : 'auto',
    'speed'     : 500,
    'easing'    : 'swing',
    'buttons'   : false,

    //events
    'beforeShow'  : function(){},
    'beforeClose' : function(){},
    'onClose'     : function(){}
});

where content could be a string, dom element or jQuery element.

Shortcuts

  • Alert

    $.topbox.alert("...")

  • Confirm

    $.topbox.confirm("...", function(){ //your callback code });

  • Block UI

    $.topbox.blockUI("...", { title: "Blocking UI"});

Something went wrong with that request. Please try again.