Changing the caption when clicking thumbnails


show more Changing the caption when clicking thumbnails provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create an Interactive Photo Gallery with jQuery and Dreamweaver show less
please wait ...

Changing the caption when clicking thumbnails

Inside our Click function for all of the images, I want to add a second statement, and we are going to update HTML that's part of the gallery caption as well. So let's start off with a Dollar sign, string literal 'gallery_caption.html', beginning and ending parentheses, semicolon. Inside here, let's start our string literal. Let's start off with a beginning and ending P tag. Inside of our paragraph tag, the first thing we are going to add is going to be an anchor tag.

Let's end the anchor tag, set an href attribute inside, open the letter x in there. And in here, we are actually going to say View larger. Come after the P tag. Let's start a new p tag and an ending p tag. And inside of here, we are going to put a letter x. Now back in our href tag, let's add in title attribute, two quotes and the letter x. Now are going to come in here and replace these with the actual variables. So the href, this is going to be a text link which will also link to the ful...

Changing the caption when clicking thumbnails
Video duration: 3m 19s 1h 55m Intermediate

Viewers:

Changing the caption when clicking thumbnails provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create an Interactive Photo Gallery with jQuery and Dreamweaver

please wait ...