- Posts: 57
- Karma: 2
- Thank you received: 3
$('#facebox').css({
top: getPageScroll()[1] + (getPageHeight() / 6),
left: 485.5
}).show()
$('#facebox').css({
top: getPageScroll()[1] + (getPageHeight() / 10),
left: ($(window).width() / 2) - ($('#facebox').outerWidth() / 2)
}).show()
$(document).bind('afterReveal.facebox', function() {
var windowHeight = $(window).height();
var faceboxHeight = $('#facebox').height();
if(faceboxHeight < windowHeight) {
$('#facebox').css('top', (Math.floor((windowHeight - faceboxHeight) / 2) + $(window).scrollTop()) );
}
});
Please Log in to join the conversation.