jQuery Inline Message Box Plugin

Inline Message Box plugin is a light weight (4.26 KB) jQuery plugin. Features include 6 types of message box, no additional css required, closable, auto closable, option parameters for full control of message box functionality etc.. You can use it very easily.

How to use it
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="inline-message-box.min.js"></script>
Configuration

Option Default Value Description
messageBoxType null Define the message box type here. 6 types of message box type is available. if this option is null, then it is the default message box. Other types are success, error, fatalerror, warning & info.
message null Set your message here.
closeButton true If you don't need 'close' button, set to false.
enabled false If you want to close message box automatically, then it set to true.
milliseconds 30000 This value is used for automatically close this message within '30' sec.


<script>
    $(document).ready(function() {
        $(".success-demo").BitCompiler().showInlineMessageBox({
            messageBoxType: "success",
            message: "This is the auto close <b>success</b> message",
            autoClose: {
                enabled: true,
                milliseconds: 30000
            }
        });
    });
</script>
Final code and demo is here

Demo

No comments:

Post a Comment