You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
461 B
JavaScript
21 lines
461 B
JavaScript
$(function(){
|
|
var overlay = $('<div id="overlay"></div>');
|
|
overlay.show();
|
|
overlay.appendTo(document.body);
|
|
$('html, body').css('position', 'fixed');
|
|
$('.popup').show();
|
|
$('.popupclose').click(function(){
|
|
$('.popup').hide();
|
|
overlay.appendTo(document.body).remove();
|
|
$('html, body').css("position", "relative");
|
|
return false;
|
|
});
|
|
|
|
|
|
$('.x').click(function(){
|
|
$('.popup').hide();
|
|
overlay.appendTo(document.body).remove();
|
|
|
|
return false;
|
|
});
|
|
}); |