Viewers: in countries Watching now:
Download a copy of the finished web site here.
So in Dreamweaver's HTML file, let's come over to Code view. Now inside of the Code view inside of the body tag, I'm going to hit a few Returns. And as I was mentioning in the last movie, when we start typing inside of code view here, Dreamweaver is going to sort of help us code this, and it's even going to access the CSS rules that we've created. So let's start by creating our very first div. I'm going to type the beginning bracket, div, and hit space and type cl for class. Notice how this pop-up window is coming up and giving me access to everything that is available, either in HTML or in the CSS that's hooked in.
So I am going to hit Return to type class, and then I see a dynamic listing of all of the classes I've created in my CSS document. I can use my arrow key down and come down to page_container. Hit Return. I'm going to hit an ending bracket to close the tag. I'm going to start a new tag hit a forward slash and Dreamweaver will automatically close that div tag for me. Now, I'm going to arrow back and get my cursor in between the beginning and ending div tags. I am going to hit a few Returns. This is going to be the overall container which is going to hold everything in our page.
In the next line, I'm going to hit Tab, and let's create our first nested div. class=, this is going to be the gallery_credit and the tag. And inside of here, I'm just going to add the word text. That way when we switch to Design view, I can actually see where this div is and be able to get inside of it. Hit another Return, another div, class=, this is going to be the gallery_type and the tag, text.
Now in the next line, these two divs are going to have float properties, so we want to clear out the float. class= clear_both. End that tag. Hit Return. Next, we're going to create the gallery_top. End that tag. gallery_content.
Next, we'll create gallery_bottom. Then I'll close out the space on the ending div. So these are all of the main children that we're going to create under the page_container area. So now let's come into gallery_ content and let's open this up, and there is actually going to be children inside of gallery_content. This is going to be the middle area where we're going to have the stretching graphic defined inside the CSS, our tiling graphic we created in Photoshop. And this is going to hold our thumbnails and preview, caption and contact area.
So inside of gallery_content, let's create a new div. This is going to be gallery_thumbnails. Let's end that div. Inside of gallery_thumbnails, let's open that up, and inside, let's type the word link. This is where we're going to put our thumbnail links. These links are actually going to be anchor tags that are going to have block properties assigned, and they are going to have float properties as well. So we're going to need to clear those.
So we'll add our clear_both to clear all those, our float and anchor tags, once we have them in place. Let's come on the line after gallery_ thumbnails. Let's create a new div. This is going to be our gallery_preview. Let's end that. Let's open up gallery_preview, and inside there, let's just type the word img. Let's scroll down here a little bit. Now gallery_thumbnails and gallery_preview are going to be classes that are also going to float, so they're next to each other.
Let's add a clear_both to clear the float on those two properties. Next, we're going to type gallery_ contact. This is going to contain our email address on the left side underneath all of the thumbnails. Let's create a new tag. This is going to be the caption. This is going to be floating on the right-hand side under the preview.
Let's end that tag. Inside of each of these, let's just type the word 'text' so we can see them. Now these two items are also going to be floating, so let's clear those. Now, on the next line, we're going to add one more div, class= gallery_preload_area.
Now, this particular class name doesn't exist in our CSS rules; however, we are going to log on to this class using jQuery, and this is where we're going to preload our images. Just like we saw in the introduction video, when we click a thumbnail, we will load an image into this area, preload it, and then when it's ready, we'll move the HTML to the main preview area and then fade up our content. So with this, this is the entire div structure and the order that we need to have all of our classes nested inside of each other to recreate our layout.
Now in the next movie, we'll go back into our CSS rules and start to assign our graphics and styling for each one of these items.
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 "" :
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
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.