Creating rollover images in photoshop

This is a discussion on "Creating rollover images in photoshop" within the Graphics and 3D section. This forum, and the thread "Creating rollover images in photoshop are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Graphics and 3D

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 8th, 2007, 16:51
Junior Member
Join Date: May 2007
Location: Virginia
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Creating rollover images in photoshop

I'm very new to Photoshop and Dreamweaver.

I have a comp for my website as a .psd file. It includes a navigation row, which looks like this:



Each word is it's own layer. I also made a duplicate layer of each word and changed the text to red. This will be the rollover state (see "Images" for an example).

What's the best way to prepare these layers as rollovers when I get to Dreamweaver?

I first created a New Layer Based Slice out of each layer, and saved them individually as .gifs. But the quality of the resulting .gifs were less than ideal. (Should I make a slice around the whole word, and save that slice, instead of just a slice of the text layer itself?) Or maybe I shouldn't be dealing with slices at all.

Any help is much appreciated. Thank you.

  #2 (permalink)  
Old Sep 8th, 2007, 17:45
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating rollover images in photoshop

Best way would be NOT to use an image. It's straight text, nothing fancy on the rollover. Just use text and change the color of the link on :hover.
  #3 (permalink)  
Old Sep 8th, 2007, 17:59
Junior Member
Join Date: May 2007
Location: Virginia
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating rollover images in photoshop

That's good to hear (because it sounds easy). Do I need to do anything to the navigation items in Photoshop (like slice them, etc.?), or is Dreamweaver the only place I'll need to establish the :hover setting?

Thank you!
  #4 (permalink)  
Old Sep 8th, 2007, 18:04
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating rollover images in photoshop

Nothing to do in PS ... all code.

Your code should look something like this

HTML
Code: Select all
<div id="navigation">
<ul>
    <li><a href="">Home</a></li>
    <li><a href="">Images</a></li>
    <li><a href="">Multimedia</a></li>
    etc....
</ul>
</div>
CSS
Code: Select all
#navigation {
    margin: 0;
    padding: 0;
}

#navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#navigation ul li {
   margin: 0;
   padding: 0;
   display: inline;
   float: left;
}

#navigation ul li a {
   text-transform: uppercase;
   padding: 0 10px;
   border-right: 1px solid #fff;
   color: #fff;
}

#navigation ul li a:hover {
   color: #900;
}
Something like that ... I haven't tested so ...

Have a look at Alistapart's Taming List article for more info on how to styles lists for menus.
  #5 (permalink)  
Old Sep 9th, 2007, 06:29
Junior Member
Join Date: May 2007
Location: Virginia
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating rollover images in photoshop

Okay, I have my .psd comp now in Dreamweaver (see below), but I don't see a way to assign the individual navigation buttons as links, set their :hover properties, etc. I looked at the tutorial you posted, but those steps seemed suited for when you're using a list to create your navigation buttoms. In my situation, I've been sent a comp and the navigation items were created in a graphics program.

Any idea how I should proceed? Thanks again.

  #6 (permalink)  
Old Sep 9th, 2007, 06:34
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating rollover images in photoshop

I think the point being made was that there's no need for your navigation items to be created as graphics in this case - they are just text, so much better to just do them as text in a list.
  #7 (permalink)  
Old Sep 9th, 2007, 08:09
Junior Member
Join Date: May 2007
Location: Virginia
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating rollover images in photoshop

Ahhh ... I'm getting it now. (Again ... first time using DW so bear with me.)

I deleted the text layers in photoshop and created the following menu using the Spry Menu Bar widget (which has about 4 million different CSS properties).



I managed to change some of the desired CSS properties but I'm stuck on how do the following:

1. How can I move the menu bar on top of the gradiant image currently right below it (like in my previous screenshot). (The long gradiant rectangle iright below the vertical menu is actually a sliced 800 x 25 px .gif.) Both are now in the same table cell. I tried to delete the .gif from the table and set it instead as a background image of the Spry Menu, but that didn't work (I may have set the wrong CSS property.)

2. How can align the menu to the far right?

3. Which CSS property do I change to decrease the height of the pipes (actually, right borders) which separate the menu items? And I'll need to not show the last pipe (after CONTACT).

Thanks again for your continued help.
  #8 (permalink)  
Old Sep 9th, 2007, 16:48
Junior Member
Join Date: May 2007
Location: Virginia
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating rollover images in photoshop

I moved my post to the CSS forum since it's become more about CSS now.

http://www.webforumz.com/css-forum/5...htm#post262878
  #9 (permalink)  
Old Sep 9th, 2007, 21:11
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating rollover images in photoshop

Closed Thread!
Closed Thread

Tags
rollover images

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating site in Photoshop londonmackam Starting Out 2 Nov 1st, 2007 13:30
Rollover images not placed correctly smandge Web Page Design 1 Jan 30th, 2007 12:50
Help w/ rollover images not loading camcool21 JavaScript Forum 3 Jan 1st, 2007 01:22
Creating your own website 'favourites' icon in Photoshop Legacy_Staff Graphics and 3D 10 Sep 8th, 2006 12:48
Creating Photoshop Comps For A Client aldo342 Graphics and 3D 1 Sep 7th, 2006 13:17


All times are GMT. The time now is 08:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43