I have a problem when I close the Lightbox, because jumps to the top, you can see it in this link http://beautytop.com.br/art-secadores/secadores.php , the problem is with the products at the bottom of the page. I want the page remains in the same place when I close the lightbox.
Here is the code:
$(function() {
// if the function argument is given to overlay,
// it is assumed to be the onBeforeLoad event listener
$("a[rel]").overlay({
mask: 'black',
effect: 'apple',
onBeforeLoad: function() {
// grab wrapper element inside content
var wrap = this.getOverlay().find(".contentWrap");
// load the page specified in the trigger
wrap.load(this.getTrigger().attr("href"));
}
});
});