Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Paul Murphy
6,162 PointsFancybox
Hi,
Just implementing fancybox to a web project of mine.
I understand it as this:
- HTML anchor tags for destination image
- Img Src attribute for what is displayed on page
- Javascript used to bring up the destination image in a lightbox function?
Unfortunately the lightbox does not appear, the image just opens the destination link.
Any help?
4 Answers
Twiz T
12,588 PointsCan you post your html file?
Michael Trilford
7,232 PointsJQuery installed also?
Paul Murphy
6,162 Pointsbump ^^^^
Paul Murphy
6,162 PointsI'm hoping you can help more with this as I am still coming to terms with HTML/CSS so Jquery is a bit beyond me at the moment.
Michael Trilford
7,232 PointsI would recommend downloading the HTML5 Boilerplate, and add your HTML content where specified in the index.html file. <!-- Add your site or application content here -->
The file is all set up so you can insert your plugins:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script> <script src="js/plugins.js"></script> <script src="js/main.js"></script>