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 |
|
|||
|
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. |
|
|
|
|||
|
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.
|
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
Re: Serversides included, but not in the right place..
And you said you saved these as .txt?
|
|
|||
|
Re: Serversides included, but not in the right place..
Quote:
|
|
|||
|
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
|
|
|||
|
Re: Serversides included, but not in the right place..
First of all, put all ur javascript in an external file, because its annoying
|
|
|||
|
Re: Serversides included, but not in the right place..
Ok, but I am afraid I don't really know how to
|
|
|||
|
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. |
|
|||
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. |
|
|||
|
Re: Serversides included, but not in the right place..
You may want to change the <body onload= command as its currently directed to your C:/ drive.
|
|
|||
|
Re: Serversides included, but not in the right place..
Err.. I don't think I have any... In the properties it says invalid markup and in the CSS styles it says no Css styles..
|
|
|||
|
Re: Serversides included, but not in the right place..
OK, then delete the div tags
|
|
|||
|
Re: Serversides included, but not in the right place..
Ok, done - but now it says error in page..
|
|
|||
|
Re: Serversides included, but not in the right place..
kk i put it in dreamweaver, putting
<p></p> <p></p> Above the nav include it goes underneath. |
|
|||
|
Re: Serversides included, but not in the right place..
I knew it was something simple like that!! Thank's
I don't know what kk mean but I put this in.. p> </p> <p> </p> <p> </p> <p> </p> I am glad I learnt to put aside the java and all that! However I tried to get it all centered in the page but that didn't work how I wanted it either.. I think it is a bit embarrasing to ask for more but if you have a spare minute... How do I center it all? Ps I don't know why it says error in page either.... |