Creating Rollover ButtonsRequirements: Adobe Photoshop 6.0, Any html/text editor such as
NoteTab Pro or Notepad. Before we get started, a quick note on Layer Styles v/s Filters. Most Photoshop people love playing with filters. I personally love Alien Skin software. However I strongly recommend using filters both sparingly & wisely. Overuse of filters can make one's work look like it was done by some bozo who just got a new toy. Filters, once applied & saved, cannot be undone. That image or layer is forever embossed, textured, beveled... whatever you did to it, you're stuck with it unless you want to recreate it from scratch. Layer Styles leave the image in it's original state and simply apply an effect to that image. If you don't like what you did 6 months ago it can always be edited. Even more importantly, Layer Styles have many parameters that ImageReady can change incrementally at your specification to create animations, (we'll get into this in another tut). 'Nuff said. On with the tut. In Photoshop, hit Ctrl+N and create a new file 30px high by 60px wide and name it mybutton. Resize the window nice & big and hit Z to select the Zoom tool Hit Shift+Ctrl+N to create a new layer and name it Button. Click & hold over the Marquee tool and select the Elliptical marquee. Starting at the top left corner, click & drag to the lower right so that your selection stops 2 px away from the bottom & right edges. Nudge your selection with the arrow keys down and right 1 px so that it is centered, 1px away from all 4 borders. Go to Select/Modify/Contract and enter 3 px. Set your foreground color to #BE0000 and fill the hit Alt+Backspace to fill your selection with the dark red. With the selection still active, nudge it down and right 1 px. This is for a more subtle rollover. For a more pronounced rollover effect nudge down and right 1 more pixel. Hit Shift+Ctrl+N for a new layer and name it Over. Set your background color to full red (#FF0000) and hit Ctrl+Backspace to fill the selection with the background color. Now hit Ctrl+D to deselect. |
|
Turn off the Over layer, double click the Button layer to open the Layer Style palette and choose Drop Shadow and set as shown here. |
Next, choose Bevel and Emboss with these settings. |
Now right click the Button layer and choose Copy Layer Style, right click the Over layer and choose Paste Layer Style. Open the Drop Shadow palette on the Over layer and change the settings as shown here. |
Click and drag the Over layer to the Creates new layer |
| |||
Now let’s add a little text. With the Button layer selected, hit T to select the Type tool |
|||
Your Layers Palette should look like this now. |
Create a master folder & name it anything. Within this folder, create another folder and name it images. Hit Ctrl+S and save your mybutton.psd file in the first folder. Now with the Text over, Over & Depress layers turned off and all others on, hit Shift+Ctrl+Alt+S and save this file as mybuttonout.gif in the images folder. Turn the Text out and Button layers off and turn on the Text over, Over & Depress layers. Again, hit Shift+Ctrl+Alt+S and save this file as mybuttonover.gif also in the images folder. Your finished mybuttonover.gif & mybuttonout.gif images should look like these: Out |
||
Bringing it to LifeOpen Notepad or any HTML editor, (I swear by NoteTab Pro), insert the following source and save as an html file or download my htm file
HERE. Right click, choose "Save Target As" and save in your Master folder. If you want to look at my mybutton.psd, you can download it HERE. |
|||
Key text highlighted: Red= filepath/name.gif, Yellow= Rollover "name" |
|||
|
<html> |
|||
* NOTES: I like to minimize use of upper case text in my source. This is strictly a matter of preference. In the above script there are two occurences of the word "Image" that are capitalized. If they're not, the script won't work. |
|||