This document provides steps for creating image rollovers and navigation buttons for a website using Photoshop and Dreamweaver. It involves slicing a comp design in Photoshop, optimizing the images, and then using Dreamweaver to add behaviors that swap between normal and hover states for buttons. Key steps include slicing the comp, optimizing and saving images, creating hover versions of buttons, and using the Swap Image behavior in Dreamweaver to create rollovers. The process results in HTML, CSS, and image files that can be used to build a website with functional navigation buttons and image rollovers.
2. 1 Step 1: Organization
Start with a Main Folder for your
whole project.
Artist_main
It will contain some Subfolders:
1 Subfolder #1 族Working Files
bContains files you
gathered/liberated to
create your comp Artist_workfiles Artist_website
bAlso contains your comp
2 Subfolder #2 族A root folder for
your website.
bOnly files destined for a
server will go in here.
2
3. Step 2: Open Comp in Photoshop
2 & pull guides along the slice lines
If you turn on
View>Snap to>Guides
your slices will snap
right to the guides.
Make sure Back, Next and Nav are in the resting
(non-hover) state.
3
4. Step 3: Create slices with
3 slice tool
The slice tool
The slices you make
are User Slices.
Theyll have a little
blue tab in the upper
right corner.
Photoshop will
create Auto Slices
for all the areas you
dont slice. They have Areas to slice:
a gray tab in the
upper right. 1 Titlebar 5 Next
2 Illus 6 Textarea
3 Ani 7 Nav
4 Back
4
5. Step 4: Edit Slice Options for each Slice
4 {Right click the slice > Edit slice options}
Enter the name of
the image per the
Musician Map
Double check that the
slice is the right
distance from the
top and left
Double check that the
slice has the correct
dimensions per the
Musician Map.
5
6. 5 Step 5: slicing the nav area
1 Make one big slice from the navbar.
2 Right click 族 Divide Slice.
3 Choose Divide Vertically.
4 Adjust slice divisions if necessary.
5 For each new slice, use Edit Slice
Options to give the slice a name.
6
7. Step 6: Get ready to optimize
6 and Save
Make sure to turn off the
MusicianMap.ai layer if you
used it - you dont want
it to appear in your
optimized images.
Make sure that the Navbar
images and the Back and
Next slices are in their
resting (non-hover) states.
7
8. 7 Step 7: file > Save For Web
Youll end up here, at
the Save for Web screen, where
you optimize your slices prior
to saving them.
This is pretty familiar by now!
When you click Save,
Photoshop takes you to the
Save Optimized As dialog box.
There, you can direct Photoshop to create an html page and CSS at
the same time its creating your slices.
{ZOMG!}
8
9. 8 Step 8: The Save Optimized As box
The Artist_website folder
you created in Step 1 should
be here.
Select HTML and Images here
Select All Slices here
When you have the above 3 options in place, select Custom in the
Settings dropdown.
In the Custom dropdown,
select Other.
9
10. 9 Step 9: Output Settings
Select Slices from this
dropdown
Select Generate CSS
Referenced by ID in this
button/dropdown area.
Select OK>Save>Save AND THE MAGIC IS COMPLETE!
10
11. q Step 10: the files you created
Psy_template.html The web page
Artist_workfiles
about.jpg
ani.jpg
images
back.jpg
discography.jpg Images
home.jpg folder with
illus.jpg many images
next.jpg
Psy_template_08.jpg
Psy_template_10.jpg
Psy_template_11.jpg
Psy_template_13.jpg
Psy_template_15.jpg
Psy_template_16.jpg
Psy_template_17.jpg
Psy_template_18.jpg
textarea.jpg
titlebar.jpg
11
12. w The web page
In the browser
The html
(lol)
Photoshop creates a web page with an
absolutely positioned div for each slice.
All the divs are contained in a div called
#Table_01. It, too, is absolutely positioned at
the top left of the body element. Thus, the
page is not centered and is jammed up at the
top left. Well take care of that later.
First, well make the rollover buttons.
12
13. e Creating Button Hover images
Well create and save a new image for the hover state of each
navbar button and for the back and next buttons.
Go back to your Photoshop comp.
Turn on the hover state for each of the navbar buttons and for
the back and next buttons.
I gave mine a lovely pink
glow using layer effects.
13
14. r Creating Button Hover images
(continued)
Using the Slice Select Tool,
select each navbar slice.
Right click > Edit Slice Options.
Rename each navbar slice. The
name should be something
like Home_hover or
Home_mouseover.
Do the same with the back and
next buttons.
Next, well go through the Save for Web process again, but just for
these images.
14
15. t Saving hover images
In the Save for Web Optimization
screen, select only the navbar slices
and the back and next slices.
In the Save Optimized As box:
The Artist_website folder you created
in Step 1 should be here.
Select Images Only here.
Select Selected Slices here
Select OK > Save > Save and Photoshop will send the new images to the
images folder.
15
16. y Creating the Rollovers
Open your html file in Dreamweaver.
Make sure that the Dreamweaver
Show Code and Design view
is selected, so you can see
both versions.
Also, select
Window > Workspace Layout >Classic
16
17. u Creating the Rollovers (cont.)
Turn on Window > Behaviors
The Tag Inspector/Behaviors
panel will open in the panel area
on the right.
In the design view, click on one of the
navbar button divs to select it.
Under Behaviors, click the + sign
17
18. i Creating the Rollovers (cont.)
Select Swap Image
In the Swap Image dialog box,
select browse and navigate
to the _hover image for the
navbar button you selected.
When the image files name
appears in the Set Source to
box, select ok.
18
19. o Testing your Rollover
Save your html page:
To Preview in Browser, select the globe icon from the toolbar at
the top of the screen and choose a browser.
Repeat steps 16 and 17 with all the rollover divs.
19
20. o Tweaking your page - Final Steps
To add text to the text area
1 Delete the image from inside <div id=Textarea_>.
2 Add the image as a background image to the #Textarea
selector in the CSS.
3 Returning to the div itself, add in your text.
To center the page (if you wish)
1 Photoshop creates a div called #Table_01 thats a container
for all the divs inside it.
2 Change the CSS of #Table_01 so that it behaves like the
#wrapper div we have used in other assignments.
3 Visit http://bettyopolis.com/announcements/
centering-an-html-page/ for more information.
Gif animation
1 Create the Gif animation separately. Insert the image in the
appropriate div in your html page.
20