cialis online pharmacy generic xenical cheap cialis online cialis generic viagra online in canada buy cheap levitra online cialis without a perscription order viagra uk no prescription flagyl cheap generic levitra buying viagra in the uk cheap viagra approved cialis deltasone online buy viagra online without prescription non prescription cialis buy orlistat uk buy cialis in india prednisone 60 mg female viagra online buy viagra without prescription celebrex prescriptions buy cialis canada best prices viagra alternative to prednisone cheapest generic levitra levitra 5mg cheap viagra cialis on line buy xenical without prescription online accutane canadian health care prednisone no prescreption viagra online generic female viagra europe buy cialis low price cheap india viagra

Simple Modal Plugin

Simple Modal is a lightweight jQuery plugin that gives you flexibility to build any ideas that you envision. Created by Eric Martin, it also gives you a powerful interface for modal dialog development.


#simplemodal-container a.modalCloseImg {
 background:url(/img/x.png) no-repeat; /* adjust url as required */

For IE6 when applying PNG fix

<!--[if lt IE 7]>

<style type='text/css'>

 #simplemodal-container a.modalCloseImg {





 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(

 src='img/x.png', sizingMethod='scale'





onOpen: for adding effects to opening of modal dialog elements

$("#element-id").modal({onOpen: function (dialog) {

 dialog.overlay.fadeIn('slow', function () {

 dialog.container.slideDown('slow', function () {'slow');




onShow: for binding events or any actions you might want to perform after modal dialog elements are displayed.

$("#element-id").modal({onShow: function (dialog) {

 // Access elements inside the dialog

 // Useful for binding events, initializing other plugins, etc.
 // For example:

 $("a", () {

 // do something
 return false;



onClose: for adding effects to closing of modal dialog elements.

$("#element-id").modal({onClose: function (dialog) {'slow', function () {

 dialog.container.slideUp('slow', function () {

 dialog.overlay.fadeOut('slow', function () {

 $.modal.close(); // must call this!





To learn more about Martin’s cool lightbox, kindly visit his site by clicking on the image.

Demo and Download.

Related Posts

Adding Instagram Badges to Your WordPress Profile

How to Create a Custom WordPress Registration Form with Flat UI

How to Create A Basic Hipster-Style Layout

How to Style Nav Links Using Floats With HTML5 and CSS3