I have jQuery Fancybox 2 plugin from fancybox.net and I created a multiple links loop id records from database using fancybox.ajax as class look like this...
<a class="ajaxbox" href="showproduct.php?id=1" title="Show Product">Show Product ID 1</a>
<a class="ajaxbox" href="showproduct.php?id=2" title="Show Product">Show Product ID 2</a>
<a class="ajaxbox" href="showproduct.php?id=3" title="Show Product">Show Product ID 3</a>
and my javascript code...
$(function(){
$(".ajaxbox").fancybox({
maxWidth : 900,
maxHeight : 700,
fitToView : false,
autoSize : true,
openEffect : 'none',
closeEffect : 'none',
type : 'ajax'
});
});
In IE and Safari it works great without any problems but I got a problem in Chrome and Firefox (14.0.1) The problem is when I click X button the fancybox is closed but when I open same fancybox.ajax again the backgroud opacity get darker and I try to close fancybox again the content is closed but the background is still dark. I have to click on the dark background again to close opacity effect. So, I try to open same fancybox.ajax same link again third time and I got background more darker than second time.
Btw. others fancybox function is ok only problem with ajax function.