Mohamed
unread,Jun 14, 2010, 10:57:39 AM6/14/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
Hi,
I'm using fancybox for the first time..
In my page, i have plenty of links, and i use the rel attribute for
fancybox (<a href="link.html" rel="fancybox" ...)
And this is my code for setting up fancybox
$(document).ready(function() {
$("a[rel=fancybox]").fancybox({
'width' : '50%',
'height' : '70%',
'autoScale' : false,
'type' : 'iframe',
'cyclic' : false,
'overlayShow' :false
});
});
The problem is, when i click on the first link it works, but when a
click on the close icon, instead of closing the box, it shows the
content of the second link!! it's a kind of gallery so every time i
close the box it shows automatically the content of the next link in
the page. All i want is, when i click on the close button... it closes
the box.
PS: i don't wanna use the class or id attributes with fancybox.
Thx!