Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
At this point, we are ready to add in a lightbox functionality. So the one I really like and I've included in the exercise files is Fancybox. To learn more about Fancybox, you can visit their web site, fancybox.net. You can download the latest copy of this particular plug-in, and this works exactly the same way as the preload works, where we hook in our files and then we simply can make calls called Fancybox just like regular functions inside of jQuery. So I am going to take the Fancybox folder in the includes directory from Exercise Files and we are going to move this over into our project.
Down here at the bottom, I will open this window up more. We are going to click on fancybox-1.3.4.js. Click Choose. Click OK. Let's hit another Return. Now we need to import a CSS file, come up to Format > CSS Styles > Attach Style Sheet, Browse > myGallery > includes > jquery.fancybox > fancybox folder, and we will grab the fancybox-1.3.4.css and click Choose and say OK.
Switch back out to Design view. I can now see the Fancybox, related files showing up here on the top of Dreamweaver as well. Now in the next movie, we're going to set up some jQuery statements to activate hyperlinks to load high-res images in the lightbox.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 96686 Viewers
56 Video lessons · 110399 Viewers
71 Video lessons · 79228 Viewers
131 Video lessons · 37993 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.