Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 28-10-2008, 13:48   #1
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default Website Menu Help

OK, as some of you know I'm working on a site for a friend. It's CSS/HTML based.

What I currently have is a vertical menu with three states, being Basic/Hover/Current. Basic has a white background, hover has a light greay background and current has a blue background. This is fine in CSS with a normal font. BUT...my friend would like me to use his custom font for the menu which means I now have to use images for the buttons and can't just use CSS. I know I can create one image button and shift the image in CSS.

Is this a good way of doing it? Or am I going to run in to problems with different browsers?
__________________
Desmo is offline   Reply With Quote
Old 28-10-2008, 13:58   #2
NokkonWud
BD Recruitment Officer
 
Join Date: Jun 2007
Location: Smogville
Posts: 3,880
Default

It should be fine, but images will increase load time. Id' recommend against a custom font on a menu.
__________________
NokkonWud is offline   Reply With Quote
Old 28-10-2008, 13:59   #3
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

I'll give it a whirl and see how it goes. I'd prefer not to use a custom font as well but it's something he'd like. There's only 5 or 6 items so shouldn't affect load times too much.
__________________
Desmo is offline   Reply With Quote
Old 28-10-2008, 14:00   #4
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default

Older browsers (i.e. IE6) might have problems. Anything relatively recent (including IE7) should work. The worst case would likely be that the button works but the image doesn't shift, which should at least be usable.

The alternatives are exchanging bitmaps or Flash. The former you have to fiddle with pre-loading the images to stop it looking ugly (and it's slower than the single image approach - both in load and display times). The latter, eurgh.
Mark is offline   Reply With Quote
Old 28-10-2008, 15:16   #5
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

Anybody know how to add a current state to this?

http://dragan.yourtree.org/blog/en/2...rollover-menu/
__________________
Desmo is offline   Reply With Quote
Old 28-10-2008, 16:23   #6
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default

I haven't looked at the code, but at a guess, add a third row of 'buttons' to the image, and then use two CSS 'classes' for each button - one for current, and one for everything else. That's approximately what I do. Wouldn't be surprised if there was a better solution though.
Mark is offline   Reply With Quote
Old 28-10-2008, 17:01   #7
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

I did try that. I added a third row to the buttons but I can't seem to get the coding right :/
__________________
Desmo is offline   Reply With Quote
Old 28-10-2008, 18:02   #8
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

Cheers Lozza, that seems to have give me an active set that appear when I click on them. Any idea how I can get that image to stay when the page loads? So it shows which page is active.
__________________
Desmo is offline   Reply With Quote
Old 28-10-2008, 19:37   #9
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

What I had was white to start, then grey on hover and then blue on active. I then wanted it to stay blue as current. When I said I already had that, it was only when using CSS for colours and not trying to do it with images. As it is, I think I prefer it as I have it now, without a current state showing. It just seems to look a touch neater.

Thanks for your help with the active state though
__________________
Desmo is offline   Reply With Quote
Reply


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
Forum Jump


All times are GMT +1. The time now is 15:32.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.