Created
November 24, 2009 11:50
-
-
Save mrchrisadams/241815 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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