this script
jQuery("a.fancybox").fancybox({
'hideOnContentClick': true,
'titleShow' : false,
'onComplete': function() {
jQuery("#fancybox-outer").bind("contextmenu", function () {
jQuery.fancybox.close();
return false;
});
}
});
and this link:
<a class="fancybox" href="http://www.distriad.nl/thumb.php?
file=sobi2_downloads/
17/01321_highwayatnighttheend_1280x1024.jpg&sizex=1280&sizey=1024">
<img src="http://www.distriad.nl/thumb.php?file=sobi2_downloads/
17/01321_highwayatnighttheend_1280x1024.jpg&sizex=200&sizey=200">
</a>
work for me
you can actually create a test page with just these two and it will
work fine
On Mar 18, 8:58 am, EpleVC <i...@eple.nl> wrote:
> Problem still not solved :( Can someone have a look please? Thanks
> very much.
>
> On 11 mrt, 19:50, EpleVC <i...@eple.nl> wrote:
>
> > Hi there,
>
> > Fancybox works like a charm on all the pages of our joomla site,
> > except for search results generated by Sobi2. This problem seems to
> > come up because it is loaded within a DOM element.
>
> > Standard website:http://www.distriad.nl/(clickon the images &
> > video; fancybox works)
> > Search results:http://www.distriad.nl/index.php?sobi2Search=wallpaper&search=Zoek&se...
> > (click on image; fancybox doesn't work)
>
> > Javascript:
>
> > <script type="text/javascript">
> > jQuery(document).ready(function() {
> > jQuery("a.fancybox").fancybox({
> > 'hideOnContentClick': true,
> > 'titleShow' : false,
> > 'onComplete': function() {
> > jQuery("#fancybox-outer").bind("contextmenu", function () {
> > jQuery.fancybox.close();
> > return false;
> > });
>
> > }
> > });
> > jQuery('a.popupvideo').fancybox({
> > 'autoScale' : false,
> > 'padding' : 0,
> > 'hideOnContentClick': false,
> > 'titleShow' : false,
> > 'callbackOnClose': function() { jQuery
> > ('#fancy_content').empty(); }
> > });});
>
> > </script>
>
> > (because sobi uses mootools the $-sign is replaced with jQuery to
> > prevent javascript conflicts)
>
> > Does someone have any clues to solve this? Many thanks in advance!
>
> > EpleVC
> > > Standard website:http://www.distriad.nl/(clickonthe images &
> > > > Standard website:http://www.distriad.nl/(clickontheimages &
http://groups.google.com/group/fancybox/browse_thread/thread/cfe454337ba4763e
On Mar 24, 5:44 am, EpleVC <i...@eple.nl> wrote:
> No javascript errors at all. The search results are created with AJAX
> and then loaded into the HTML. A similar problem can be found herehttp://groups.google.com/group/fancybox/browse_thread/thread/e68af56f...