Cross-Browser & Ajax-Enabled jQuery Lightbox Plugin - mbox

File Size: 1.02MB
Views Total: 2553
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Cross-Browser & Ajax-Enabled jQuery Lightbox Plugin - mbox

mbox is a jQuery plugin used to create a cross-browser and ajax enabled lightbox like modal dialog box on your web page, is compatible with all the modern browsers and older versions of opera and Internet Explorer (IE7, IE8 and IE 9).


  • Supports fullscreen mode and mbox mode.
  • Responsive design.
  • Unlimited possibilities - images, image gallery, flash embedding, vimeo and youtube videos, html divs in page, local and cross-domain ajax, part of page in another website, iframes and more.
  • Lightweight and easy to use. Without writing any javascript codes.

Basic Usage:

1. Load the required jQuery mbox plugin stylesheet file in your document.

<link href="lib-mbox/style.css" rel="stylesheet" type="text/css">

2. Add the following Html snippet in your document.

<a href="test.jpg" data-init="mbox" title="Old Car" data-type="image" class="mbox"> Load an image in mbox mode <span class="mbox-descr">Description Here</span> </a>

3. data-init attribute.

  • data-init="mbox"- mbox mode
  • data-init="fullscreen"- fullscreen mode

4. data-type attribute.

  • image - picture URL, example
  • html - css selector of html element to be shown in mbox, example #abcd .my-paragraph
  • iframe - URL to be loaded in iframe in mbox, example
  • ajax - URL To perform ajax on same website with url method only (GET method), example xyz.php?id=45
  • xajax - URL To perform ajax on other websites with url method only (GET method), example note that this method requires php)
  • youtube - URL of youtube video, example
  • vimeo - URL of vimeo video, example
  • flash - To load flash file, example

5. Load the jQuery javascript library and mbox.min.js script at the end of your document.

<script src=""></script>
<script src="lib-mbox/mbox.min.js"></script>

6. That's it. Check the documentation folder in the zip for more infomation.

This awesome jQuery plugin is developed by phploaded. For more Advanced Usages, please check the demo page or visit the official website.