Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 08-01-2007, 11:02   #1
Admiral Huddy
HOMO-Sapien
 
Admiral Huddy's Avatar
 
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
Default Proposed change to website.

Ok, i've had a look at some CSS code as some of you suggested and have set up a test page with a new navigation bar.

What do you think?


http://www.admiralcomputers.co.uk/test.htm

Plan is to have this on each page.

However, it means a lot of duplicate code. Does anyone know how I can specify the the Navaigation pane in one place which is viewable on all pages. Would save a lot of time integrating or when making furture changes.
__________________

I just got lost in thought.. It was very unfamiliar territory.
Techie Talk | My gaming Blog | PC spec | The Admirals log
Admiral Huddy is offline   Reply With Quote
Old 08-01-2007, 11:18   #2
Andy100
Nice weak cup of Earl Grey
 
Join Date: Dec 2006
Posts: 48
Default

Just opened that page on my puny 1024x768 lappy screen and it looks a bit funny.



The main headings overlap the blue border and the subheadings are overlapped by the main headings.

Just a heads up
Andy100 is offline   Reply With Quote
Old 08-01-2007, 11:25   #3
Admiral Huddy
HOMO-Sapien
 
Admiral Huddy's Avatar
 
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
Default

Oh - I knew that they would overlap the subheading.. I thought I could make the list semi-tranparent but not sure how to do that. But it doesn't overlap the with the menu option in IE.. Must be a firefox problem?
__________________

I just got lost in thought.. It was very unfamiliar territory.
Techie Talk | My gaming Blog | PC spec | The Admirals log
Admiral Huddy is offline   Reply With Quote
Old 08-01-2007, 11:43   #4
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default

Don't duplicate code - it makes for a maintenance headace. Use server side includes if you must.
Mark is offline   Reply With Quote
Old 08-01-2007, 11:47   #5
Davey_Pitch
I iz speshul
 
Davey_Pitch's Avatar
 
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
Default

Whoops, just remembered I said I'd redo the website for you Paul I'll crack on with it when work is quiet and see what I can do

Regarding having the navigation page in one place, you'd be best doing that using PHP/ASP for it, as you can create the navigation page as a seperate file, then call that file on each and every page, but only editing the single file whenever you need to make changes. Unsure how it would look though using the CSS menu system you've got there. I'll play about with it when I get the chance and see how it works.
__________________

Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others.
Davey_Pitch is offline   Reply With Quote
Old 08-01-2007, 11:48   #6
Andy100
Nice weak cup of Earl Grey
 
Join Date: Dec 2006
Posts: 48
Default

Yeah seems to just be Firefox, looks perfect in ie.
Andy100 is offline   Reply With Quote
Old 08-01-2007, 12:53   #7
Admiral Huddy
HOMO-Sapien
 
Admiral Huddy's Avatar
 
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
Default

Thanks Davey..


There's so much to learn
__________________

I just got lost in thought.. It was very unfamiliar territory.
Techie Talk | My gaming Blog | PC spec | The Admirals log
Admiral Huddy is offline   Reply With Quote
Old 08-01-2007, 13:01   #8
Admiral Huddy
HOMO-Sapien
 
Admiral Huddy's Avatar
 
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
Default

ahh .. So All I have to do is have one standard page say nav.htm, then use the following piece of code on each page where required..

<!--#include virtual="/nav.htm" -->

maybe not
__________________

I just got lost in thought.. It was very unfamiliar territory.
Techie Talk | My gaming Blog | PC spec | The Admirals log

Last edited by Admiral Huddy; 08-01-2007 at 13:13.
Admiral Huddy is offline   Reply With Quote
Old 08-01-2007, 13:30   #9
Davey_Pitch
I iz speshul
 
Davey_Pitch's Avatar
 
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
Default

You'd need to make your test page into a php page, and the server it's hosted on needs to have PHP installed on it for it to work.
__________________

Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others.
Davey_Pitch is offline   Reply With Quote
Old 08-01-2007, 13:32   #10
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default

Huddy's (and my) suggestion doesn't require PHP, it uses SSI instead. You'll probably need to rename the files to .shtml for it to work.

If there are other reasons for switching to PHP (and there may well be), then sure, but it isn't the most optimal route for just doing includes.
Mark is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 16:23.


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