► Note 145

Because rollover styles are essentially layer styles, you can only create them for layer-based slices. (Different types of slices were discussed in Chapter 10.) For the NMEA navigation shown in the previous illustration, this means each of my buttons must be on its own layer. If you don't want to (or can't) turn your slices into layer-based slices, you can still save time by copying and pasting layer styles (using the Copy and Paste commands in the Layers palette menu) or rollover states (using the Copy and Paste commands in the Rollovers palette menu).

TRY IT To create a predefined rollover style, first make sure the button you want to edit is on its own layer and that the layer is defined as a layer-based slice. If it's not defined as such, right-click (Windows) or CTRL-click (Mac) the layer in the Layers palette and choose New Layer Based Slice before continuing with the following steps.

1. Create the necessary rollover states in the Rollovers palette (as discussed in the previous two tips). For instance, if you want Normal, Over, and Selected states for each of your buttons, select one of the buttons and then add those states to that first button.

2. Add the necessary layer styles to the button to define how the button should look in each of the states you created.

3. When you're ready to save the states and styles as a predefined rollover style, click once on the layer containing that button in the Layers palette to select it.

4. Choose Window I Styles to display the Styles palette if it isn't already visible.

5. Click the Create New Style button at the bottom of the Styles palette, then click the triangle in the upper-right corner and choose New Style from the palette menu.

6. Give the style a name and be sure to select Include Rollover States to make this a rollover style, then click OK.

7. To apply your new rollover style to the other buttons, select each layer in the Layers palette and then click the icon for your rollover style in the Styles palette. When you look in the Rollovers palette, you'll notice each button now contains all the necessary states.

8. To preview how these states react to the placement of the cursor, see the next tip.

Was this article helpful?

0 0

Post a comment