Adding interface graphics
Video: Adding interface graphicsThe next rule we are going to create is going to be for the actual carousel itself, and this is actually going to be an ID. So let's go over to the CSS Styles panel, create a new rule. The Type is going to be an ID, and we are going to call this carousel and ID start with the pound sign. Let's choose OK. The Properties inside of here, under the Box settings, we are going to choose 600 wide, 300 pixels tall. Let's uncheck Same for all for Margin, and let's choose 0 on the Top, Auto on the Right, 0 on the Bottom, and Auto on the Left. Then click OK.
- Where to go from here
Viewers: in countries Watching now:
- Exporting graphics from Photoshop
- Positioning elements with CSS
- Using the Roundabout plug-in
- Activating the carousel callback
- Detecting the image in focus
- Adding the final touches
Adding interface graphics
The next rule we are going to create is going to be for the actual carousel itself, and this is actually going to be an ID. So let's go over to the CSS Styles panel, create a new rule. The Type is going to be an ID, and we are going to call this carousel and ID start with the pound sign. Let's choose OK. The Properties inside of here, under the Box settings, we are going to choose 600 wide, 300 pixels tall. Let's uncheck Same for all for Margin, and let's choose 0 on the Top, Auto on the Right, 0 on the Bottom, and Auto on the Left. Then click OK.
Let's get our cursor after the word content inside of the default text for the carousel_container. Let's come up to Layout in the Insert panel, insert a div, and under ID, let's come down and choose carousel, then click OK. Next, we are going to create a rule for the images that are going to be inside of the carousel. Let's create a new rule. This is going to be a compound rule, and this is going to be carousel img. We are going to target all of the images that are going to be inside of the carousel. In this case, this is going to be all of the teapot graphics. So pound, carousel image, choose Ok.
What we are going to do here, come down to the Box properties. For the Width we are going to set these to 300. Height is going to be set to 225. And next we are going to come down to Extensions, and under Cursor, we are going to type pointer, then choose OK. This is going to make sure that all of the teapot graphics will give you a pointer cursor, indicating to the user that you can actually click on individual images inside the carousel. And we need to bring in two additional graphics inside of the carousel container but not inside of the carousel ID.
So let's get our cursor after the letter E in here inside of the default text for carousel container. Let's come up to the Common tab. Let's choose image. Let's bring in our left and right arrows. So first let's bring in the arrow that points to the left. Click Choose. For Alternate text, we can just type arrow left. Let's choose OK. Next let's select the graphic. Hit your right arrow to make sure that your cursor is still inside of the carousel_container div.
Let's come up and insert our second graphic. Let's choose arrow right, click Choose, type arrow right for the alternate text then click OK. Once we have our arrows in place, let's come in here and select the default text for the carousel_container, and at the top, where it says content. So now, if we take a look at the source code, we should see that we have our div called carousel_container, and inside of there we have an ID called carousel.
And I am going to format the two images in here as well a little bit. So we can see we have the ID carousel and the two images for the right and left leaves inside of that container that we just created. And again, these four outermost items are still inside of our overall my_carousel container. Let's switch back to Design view, and let's create one more class. Let's go over to our CSS panel, CSS rules. We are going to create one more ID. This is going to be captions. Choose OK.
We are not going to set any properties for captions. We just want to have that container with that ID. Let's click OK, and let's come down inside of the default text for captain_container Goes Here. Let's come up to Layout in the Insert panel, insert a div. Under ID, we are going to choose caption, then say OK. Then lastly, let's come in here and get rid of the default text for the captain_container. Now we have these two IDs in place. The caption IDs are going to target the individual captions for the rotated item in the carousel, and the carousel itself is where we are going to take all the teapot images and have the Roundabout plug-in position these in the circle.
Now that we have all of the items and containers in place, in the next movie we will style the individual arrows and the leaves to position them properly before we can actually start writing our scripts.
There are currently no FAQs about Create a Rotating Carousel with jQuery and Dreamweaver.