Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created November 24, 2009 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/241815 to your computer and use it in GitHub Desktop.
Save mrchrisadams/241815 to your computer and use it in GitHub Desktop.
JoverLayer = jQuery.klass({
initialize: function(options) {
this.overlay = jQuery('<div id="overlay"></div>');
this.overlay.append(
'<div class="hd">' +
'<a class="overlay_closer" href="#">Close</a>' +
'</div>' +
'<div class="bd yui-u"></div>' +
'<div class="ft"></div>'
);
},
show_overlay: function() {
// we need to append this to the page to give the correct
// reference point for the centering feature to work properly
this.overlay.appendTo('#nagdoc');
this.overlay.jOverlay();
// set overlay to be invisible at first
this.overlay.hide();
//and fade in
this.overlay.fadeIn('slow');
}
});
FlashOverlayer = jQuery.klass(JoverLayer, {
initialize: function($super) {
$super();
this.element.appendTo(this.overlay.find('.bd'));
this.show_overlay();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment