Using Fancybox for select images
-
I am trying to integrate Fancybox into my site and its working except I am also running another js script on some images that I don’t want Fancybox to open but it does. I have tried playing with settings to no avail.
I think it has to do with setting img class=”fancybox” which I have done but it still opens these other images which don’t have the class=”Fancybox”. There might have also been something about changing
<script type=”text/javascript”>
$(document).ready(function() {
—————> $(“a”).fancybox(); <———-
$(“a.embed”).fancybox({
‘hideOnContentClick’: false
});});
</script>to –> $(“a.yesopen”).fancybox();
and adding a class=”yesopen” to my images. (or somthing along these lines. I would change this but I have no idea where to make that happen.
Working great page: Design Services
Not so great: Projects (Notice the other mousehover script)Thanks for any help! It’s greatly appreciated.
John
- The topic ‘Using Fancybox for select images’ is closed to new replies.