Nav Roll overs? |
Nav Roll overs? |
Oct 22 2009, 09:43 AM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 52 Joined: Jan 2007 Member No: 495,596 |
So i want to create rollovers on my navigation. My website was created in Ai, then sliced in Ps, so its in a table. the site looks like this:
and when you roll over the links, i want it to look like this: ![]() Is this possible or no? I've looked everywhere for an answer before i posted this. |
|
|
|
![]() |
Oct 22 2009, 08:40 PM
Post
#2
|
|
![]() Mel Blanc was allergic to carrots. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 6,371 Joined: Aug 2008 Member No: 676,291 |
Of course it is! Just do this:
Slice up each of image of the navigation in Photoshop, both regular states and hover states. Then, copy (CTRL/Command + C) each regular state images and post them into a new document (CTRL/Command + N). The width and height of the image should already be filled out to the copied images' widths and heights. When you paste all the regular states into separate documents, double the height of each of those documents. Now go back to your original document and copy each of the hover state images and paste each one accordingly with the appropriate regular states. Position the hover states in the separate documents to the bottom of the image and save (CTRL/Command + S) the image as one. So for example, this would be your home image: ![]() Now upload your images to an image hosting site so you can obtain an image URL. After that, we'll start with the coding: Input into your CSS CODE a.ROLLOVER_NAME { background: url("IMG_URL") top left no-repeat; width:###px; height:###px; display:block; } a.ROLLOVER_NAME:hover { background: url("IMG_URL") bottom left no-repeat; width:###px; height:###px; display:block; }
Input into your HTML CODE <div class="navigation"> <a href="URL" class="ROLLOVER_NAME"></a> </div>
Alright, you're done! If you didn't quite understand, you can try looking at an example I made for you here. (Sorry it's not the best quality, I kind of made it quick. Try rolling over the home link. ;D) |
|
|
|
kariiissa Nav Roll overs? Oct 22 2009, 09:43 AM
TheOn3LeftBehind Yeah it's possible. Well.. with me and my dif... Oct 22 2009, 08:10 PM
TheOn3LeftBehind *twitch* I need to read that over a couple hundre... Oct 24 2009, 01:42 AM![]() ![]() |