Fancybox not working

16 posts by 3 authors in: Forums > CMS Builder
Last Post: July 25, 2012   (RSS)

By Jason - July 22, 2012

Hi,

You need to put it in the title field of the <a> tag.

Give that a try.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Fancybox not working

By cmsb - July 22, 2012

[:)] That did it! Thank you very, very much. It's working perfectly now. Many thanks![;)]

By Jason - July 23, 2012

Hi,

It looks like you're missing a closing brace in your javascript.

Try this:

<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox();
$("#single_1").fancybox({
openEffect : 'elastic',
closeEffect : 'elastic',

helpers : {
title : {
type : 'inside'
}
}
});
}
</script>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By InHouse - July 24, 2012

Just having a quick peek in here and it doesn't look like the Fancybox directory (from which the js and css are being called) are on your server. You should be able to view the CSS file for example, by browsing to:
http://www.mtgrovecemetery.org/fancybox/source/jquery.fancybox.css
same applies to the javascript libraries (.js files)

Also, you don't need to call both the packed and unpacked .js libs. One is enough. They are both the same thing, just that the packed one has had all the unused characters removed to make it smaller.
Lastly, you're actually calling the Fancybox .css file twice also.

Although none of these duplications will stop the script from working, they may lead to confusion and extra page load weight.

The lack of the libraraies and CSS files on the server will be a showstopper though. It looks that way currently. The larger image is being displayed, but not using the Fancybox javascript.

Hope this helps,
J.

Re: [InHouse] Fancybox not working

By cmsb - July 25, 2012

Hi Jason,

Thanks so much. I found my error and it is now working perfectly.

Many, many thanks. I hope you have a great day today! You've made my day![:)]