Creating rollover states A rollover state is named by the event, such as a click or rolling the pointer over an area of the image, that triggers a change in the image or part of the image. ImageReady automatically assigns one of the following eight states to new rollovers: Over, Down, Click, Custom, None, Selected, Out, or Up. (For complete definitions of these states, see ImageReady Help.)Remote rollovers tie a rollover state in one slice to changes in a different slice. For example, the user could click a button (the activating slice) that would make a previously hidden graphic or text block (the remote slice) visible in another area of the Web page.Only user slices can have rollover states. However, you can choose Slices > Promote to convert an auto slice into a user slice, and then assign rollover states to that slice.Preparing the workspace and work options If you've already completed other lessons in this book, then you've had some experience customizing the workspace. ImageReady has several predefined workspaces that you can use for specific kinds of work, one of which you'll use for this exercise.
1. | Launch Adobe ImageReady, holding down Ctrl-Alt-Shift (Windows) or Command-Option-Shift (Mac OS) to restore default preferences. (See "Restoring default preferences" on page 6.) Click Erase when the alert asks if you're sure you want to erase all ImageReady preferences. | 2. | Choose Window > Workspace > Interactivity Palette Locations. | 3. | In the Slice palette group, select the Table tab to bring it forward, and then click the double arrows ( ) on that tab to fully expand the palette. Then drag it to the upper right corner of the work area, and switch its location with the Web Content palette.  | 4. | Drag the lower right corners of the Layers and Web Content palettes so that they take full advantage of the available space below them. | 5. | Close the Animation palette in the lower left corner of the work area.Your workspace should look like the following image.[View full size image] Another important preparation is to make sure that the work settings for ImageReady are configured properly. Some of these can't be configured unless a file is open, so you'll open your start file now. | 6. | Choose File > Open, navigate to the Lessons/Lesson14 folder on your hard drive, select the 14Start.psd file, and click Open. | 7. | If necessary, resize the image window and zoom in or out so that you can see the entire image. | 8. | Examine the View menu and submenus to make sure that the following commands are selected (checked), or select them now:ExtrasSnapGuides and Slices on the Show submenuGuides and Slices on the Snap To submenu Now you're ready to get to work. |
Creating a rollover with warped text One of the fun things you can do in ImageReady is to warp text shapes. For example, you can make the words appear as if they were painted on a three-dimensional object.In this exercise, you'll apply that warp as well as a rollover state to some text. The resulting text will appear on the fina213 image only when the user performs a specific action.
1. | Select the Slice tool ( ), and drag a rectangle around the words "Museo Arte," using the guides as a reference so that the slice borders snap to them.  | 2. | In the Web Content palette, double-click your new user slice, named 14Start_02 by default, type Museo Arte, and press Enter (Windows) or Return (Mac OS) to rename it. | 3. | Click the Create Rollover State button ( ) at the bottom of the Web Content palette. A new Over state rollover appears nested below the Museo Arte slice in the palette.The Over state activates the image when a user rolls the mouse cursor over the hotspot. | 4. | In the Layers palette, select the Museo Arte layer. | 5. | In the toolbox, select the Type tool ( ). On the Type tool options bar, click the Create Warped Text button ( ). (If a dialog box appears warning you that editing will cause the layout to change, click OK.)NoteYou do not need to use the Type tool or select the text. The warping effect applies to the entire text layer, not to individual words or characters. | 6. | In the Warp Text dialog box, choose Style > Fisheye, and drag the Bend slider to 30%. Leave the Vertical and Horizontal Distortion sliders at 0%, and click OK. Notice the distortion of the Museo Arte text. | 7. | In the Web Content palette, click Normal to deactivate the rollover-state display in the image window. |
Note Warping text is not the same as placing type on a path, which is a Photoshop feature. For information on how to arrange characters on geometric or freeform paths, see Photoshop Help. (That feature is not available in ImageReady.)Previewing a rollover Although the end result of this project is a Web page, you can test the interactive behaviors of your slices in ImageReady. You do this by stepping out of working mode into preview mode. While you are previewing, some palettes, such as the Layers palette, are dimmed because you cannot select layers or make adjustments in those palettes in preview mode.
1. | In the Layers palette, click a blank area to deselect the Museo Arte layer. | 2. | In the toolbox, first select the Toggle Slices Visibility button ( ) or press Q to hide the slice boundaries and remove the ghosting appearance over the image. | 3. | Click the Preview Document button ( ) or press Y to activate preview mode.Lesson 13, "Creating Links Within an Image." |
Creating rollovers that affect layer visibility Perhaps one of the most common methods of animating a file is to change the visibility of different layers.In this design, the original version of the central image was fully colored instead of the heavily blue-toned version that you see in Normal state. Sections of the original version have been copied onto layers in this file, above the blue-version Background layer. The original-color sections line up perfectly with the blue image, so making them visible appears to brighten just that area of the image by removing the blue color cast.
1. | In the Web Content palette, locate the Menu Slices slice and toggle it open by clicking the arrow next to the thumbnail. Notice that the slice has a small grid icon next to its name ( ). This means Menu Slices is part of a215 table. Tables produce cleaner, more manageabl206 code. Each cell in a table can contain an image slice, as in our Menu Slices slice. The slices within the Menu Slices slice are called nested slices. | 2. | Select the About nested slice, and then click the Create Rollover State ( ) button at the bottom of the palette to create a new Over state for it. | 3. | In the Layers palette, expand the Menu Color Bkgds layer set, and click the visibility box to set an eye icon ( ) by the Cell_1 layer.The background behind the About Museo Arte text is now more brightly colored. [View full size image] | 4. | In the Web Content palette, click Normal, and click the arrow by the About slice to collapse its contents.The eye icon disappears from the Cell_1 layer, and the About button in the image window returns to its monochromatic blue coloring. | 5. | Using the same process as Steps 23, create rollover states for each of the remaining four table slices:Select the Tour slice, create a new rollover, and make the Cell_2 layer visible.Select the Exhibits slice, create a new rollover, and make the Cell_3 layer visible.Select the Members slice, create a new rollover, and make the Cell_4 layer visible.Select the Contact slice, create a new rollover, and make the Cell_5 layer visible. | 6. | Hide all the rollover-state listings for the slices by clicking the arrow for each slice.  | 7. | In the Layers palette, collapse the Menu Colored Bkgds layer set. |
Previewing layer-visibility rollovers Now it's time to test your rollovers by previewing them.
1. | Click a blank area of the Layers palette to ensure that no layers are selected. Then click the Preview Document button ( ) in the toolbox.NoteDo not click the Toggle Slices Visibility button this time. Keep slice boundaries and symbol boxes visible as you preview. | 2. | Slowly move the pointer up and down over the different buttons in the table and notice the following:The changes in background coloring as the pointer moves over the button areas.The Active Slice badge ( ) that appears in the symbol sets in the image window and slice listings in the Web Content palette, and also in the boxes next to the slice visibility symbols ( ).
  | 3. | Click the Preview Document button again to deactivate it. | 4. | Choose File > Save to save your work. |
About slice symbols The blue, green, and gray slice symbols, or badges, in the Web Content palette and in the image window can be useful reminders if you take the time to learn how to read them. Each slice can contain as many badges as are appropriate. The following badges appear under the stated conditions:( ) The number of the slice. Numbers run sequentially from left to right and top to bottom of the image.( ) The active rollover state is in this slice.( ) The slice contains image content.( ) The slice contains no image content.( ) The slice is layer-based (that is, it was created from a layer).( ) The slice includes at least one rollover effect.( ) The slice is a nested table.( ) The slice is a remote trigger (causes a change in a remote slice).( ) The slice is a remote target (changes in response to a user action in an associated remote trigger slice).( ) The slice is linked to other slices (for optimization purposes). |
 |