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.

Styling

#simplemodal-container a.modalCloseImg {
 background:url(/img/x.png) no-repeat; /* adjust url as required */
 width:25px;
 height:29px;
 display:inline;
 z-index:3200;
 position:absolute;
 top:-15px;
 right:-18px;
 cursor:pointer;
}

For IE6 when applying PNG fix

<!--[if lt IE 7]>

<style type='text/css'>

 #simplemodal-container a.modalCloseImg {

 background:none;

 right:-14px;

 width:22px;

 height:26px;

 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(

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

 );

 }

</style>

<![endif]-->

Callback
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 () {

 dialog.data.fadeIn('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", dialog.data).click(function () {

 // do something
 return false;

 });

}});

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

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

 dialog.data.fadeOut('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