Adding and linking the thumbnail images
Video: Adding and linking the thumbnail imagesNow, we're going to add some thumbnail images. Let's get your cursor inside of the gallery_thumbnails div, after the k, in that default text we put in there. Come up to the Insert panel > Insert Image > acrobats_thumbnail.jpg. Click Choose. Enter some Alternate text. Click OK. I am going to click on this and select it. Down on the Properties panel, I am going to come down to the Link area here and I am going to create a hyperlink around this image. So let's click on the little folder, and we want to link it to the acrobats_fullsize.jpg. Then click Choose.
Viewers: in countries Watching now:
Download a copy of the finished web site here.
- Preparing gallery photos using Adobe Bridge
- Adding and linking thumbnail images
- Creating the layout in HTML and CSS
- Downloading and adding jQuery to the project
- Creating preview images from anchor links
- Implementing the preload functionality
- Building a customized lightbox with the Fancybox plug-in
- Styling the zoom and contact links
Adding and linking the thumbnail images
Now, we're going to add some thumbnail images. Let's get your cursor inside of the gallery_thumbnails div, after the k, in that default text we put in there. Come up to the Insert panel > Insert Image > acrobats_thumbnail.jpg. Click Choose. Enter some Alternate text. Click OK. I am going to click on this and select it. Down on the Properties panel, I am going to come down to the Link area here and I am going to create a hyperlink around this image. So let's click on the little folder, and we want to link it to the acrobats_fullsize.jpg. Then click Choose.
And when I click away, I can see this blue highlight around the outside, letting me know that this image actually contains a link to the high-resolution file. Let's test this. Choose File > Save All, and then Option+F12 or Alt+F12, Command+R or Ctrl+R to reload, and I can see my gallery here. Let's roll over the thumbnail. I get a little pointer. I click it, and it links me over to the full-sized JPEG. Then I can use the browser's Back button to go back. Now, in the introduction video, we talked about the fact we were going to progressively enhance this user experience.
So in here, let's close the browser. Let's come back to Dreamweaver. Let's switch over to Code view. Inside of Code view, we have, inside of gallery_thumbnails, we have our first anchor tag with the image inside of it. Let's delete that link text, and we want to add one more piece of code in here. We want to add a title attribute to the anchor tag. Titles are what actually show up on a hyperlink if you roll over it, so we're going to use this to create our captions. And I am just going to type 'Caption goes here for Acrobats'.
So at this point, we need to add the remaining 19 thumbnail images and link each corresponding thumbnail to its high-resolution file. I'll do that before the next movie, and then we'll continue on.
Find answers to the most frequently asked questions about Create an Interactive Photo Gallery with jQuery and Dreamweaver .
Here are the FAQs that matched your search "" :
- Q: The finished state of the interactive photo gallery in this course shows a clickable preview. When you click on the preview image, or on the view larger icon, a larger lightbox image appears. Chris's example has a close button and border surronding the large image, but mine doesn't. Did I miss a step?
- A: The functionality you describe is part of FancyBox plug-in we use in this course. It's a custom lightbox tool, which I've included in the exercise files and also available for download at fancybox.net. It's free and highly customizable.
By default, FancyBox adds a border to images (at least in the version of FancyBox we're using), but there are many options that can be turned on when you set up your fancybox initialization script, including the close button, which is invoked using the showCloseButton property. This is all covered in the "Creating a custom function for lightbox properties" movie.
If you want to customize your gallery further, look at the list of the customizable properties at http://fancybox.net/api.
- Q: This course was updated in April, 2013. What changed?
- A: Since the release of this course, Internet Explorer 9 and 10 have been released, and sometimes these browsers do not activate interactive HTML content. To remedy this problem, the author has added a movie to Chapter 10 that will show you how to:
- Update the HTML to HTML5
- Update the version of jQuery
- Use the Google html5shiv to keep compatibility with Internet Explorer 7 & 8
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.