jModal v1.1 Demo
1.1 Changelog
*new options API
*jQuery.noconflict() compatibility
*Fixed progress bar showing when progress = false
*Added escape key to close modal window
*Tweaked the progress bar fading time
*Added default options
*Added center option to force center position on container
*Overlay color can now be specify in the options
*Overlay opacity can now be specify in the options
*Better destruction for Flash and embedded objects
*Better data structure for multiple instances
Below is the code used in this demo page
<script language="javascript">
var j = jQuery.noConflict();
//you can define default options
j(document).ready(function(){
j.fn.createDialog.defaults = {
progress: true,
center: true,
opacity: 0.7,
bg: '#FFF'
}
//stuff defined here overwrite defaults
//flash SWF test
j("#clickme").createDialog({
addr: 'dialog.htm',
opacity: 0.9
});
//normal dialog test
j("#clickme2").createDialog({
addr: 'dialog2.htm',
bg: '#000'
});
});
</script>
I will write more test case and proper documentation as soon as I have time. I just wanted to push this out for you to enjoy.
click here
click here 12