This is a discussion on "Serversides included, but not in the right place.." within the PHP Forum section. This forum, and the thread "Serversides included, but not in the right place.. are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Serversides included, but not in the right place..
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi,
I am building a site for my mum and decided to use server side navigation. I have a top and left side navigation bar that I want to include in every page. Here it is http://www.pilgrimtarja.com That's not how I want it however. I want the left side nav to lie underneath the top nav and the main area next to the left nav under the top nav, preferably all of it centered in the page. I just can't do it! How can I include my navigation data in the right place?? PS: I know not how to use css for this... And I don't want users to load the navigation every time the click on a link. |
|
|
|
#2
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
Put the navigation in a seperate file. Name is navigation.php
Then on the main index page, where you want the navigation to appear.
|
|
#3
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
Hiya,
Thank's for your reply! I have already tried putting the files in like this
Does it change the behaviour if I save it as a php? Do you mean that I should make both navigation bars in the same document? And put them where I want them? Will my main area load where I want it then? Thank's again.. /Sof |
|
#4
|
||||
|
||||
|
Re: Serversides included, but not in the right place..
Post your text file up so we can see it. But really, just create your menu as html and save it as a php file, then include the php file. Simple.
|
|
#5
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
Here it goes...
Here comes the left side navigation..
Last edited by herkalees; Apr 28th, 2006 at 12:20. |
|
#6
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
And you said you saved these as .txt?
|
|
#7
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
Quote:
|
|
#8
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
I have actually changed it a bit now.. Saved them as PHP and put it like this
|
|
#9
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
First of all, put all ur javascript in an external file, because its annoying
|
|
#10
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
Ok, but I am afraid I don't really know how to
|
|
#11
|
|||
|
|||
|
Re: Serversides included, but not in the right place..
hehe no problem.
Get all your javascript between: <script language="JavaScript" type="text/JavaScript"> and </script> Put it in a text file and name it javascript.js. Now in your main site the header or index, where your <head> is. Put: <script type="text/javascript" language="JavaScript" src="javascript.js"></script> in your <head> tags. Be sure not to include any of the <script="javascript> tags and the ending </script> tag. You just need the actual javascript code in the javascript.js file. |
|
#12
|
|||
|
|||
Here's the index page..
If you have not yet understood it you are talking to a real dummy here /SOf Last edited by Sofie; Apr 28th, 2006 at 12:58. |
|
#13
|
|
|
|