Hi,
Create a hyperlink on which you need to show the modal pop up box-
<a href="#" class="paulund_modal">Click Here</a>
Create The JQuery Modal Box Plugin:
Create a new javascript file and call it jquery.paulund_modal_box.js and save in the same folder as your webpage.
(function($){
// Defining our jQuery plugin
$.fn.paulund_modal_box = function(prop){
// Default parameters
var options = $.extend({
height : "250",
width : "500",
title:"JQuery Modal Box Demo",
description: "Example of how to create a modal box.",
top: "20%",
left: "30%",
},prop);
return this.click(function(e){
//Do stuff here
});
return this;
};
})(jQuery);
For the design and other details, please see the below link-
http://www.paulund.co.uk/how-to-create-a-simple-modal-box-with-jquery
Hope this will help you !!
Thanks,
Ashutosh Jha
http://tricksroad.com