Join Chris Converse for an in-depth discussion in this video Adding icons and styles to the zoom and contact links, part of Creating an Interactive Photo Gallery with jQuery and Dreamweaver.
Now we're going to add a hyperlink down for the contact section.…Let's get our cursor down in here.…We had put that default text in the beginning inside of the div.gallery_contact.…Let's come in here and type 'Contact Me'. Let's select that.…Down in the Properties panel, under the Link field, we're going to make this a…hyperlink that will initiate a mail to: address.…So we're going to type mailto, colon.…Then you can put in your email, address firstname.lastname@example.org, hit Return.…
That will create a hyperlink.…Over on the right-hand side, we had that default text in for where the caption goes.…Let's just delete that text.…So with a hyperlink created on the left, let's come over to our CSS Styles.…Let's go to new hyperlink style, Compound path.…We're going to say a.contactlink.…This is going to be a brand-new class.…We'll assign it into the anchor tag in a moment. Let's choose OK.…The Properties, we're going to pick in here.…
Color, we're going to set to white. Text-Transform, all uppercase.…No Text-decoration.…
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
Skill Level Intermediate
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?
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