This is a discussion on "Home page contents must occur in every link that is opened" within the Web Page Design section. This forum, and the thread "Home page contents must occur in every link that is opened are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Home page contents must occur in every link that is opened
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Home page contents must occur in every link that is opened
Hi,
I have designed a website. On my home page, logo is there at top, below that horizontal menu, vertical menus are there on the left and footer at the bottom. The body part is blank as of now. I want that whenever i click on any of the link on the menu that particular link must be opened in the body part and i want the logo, horizontal menu, vertical menu and footer to appear on that page as they are on the home page. I want this to happen on whatever link i click. I have created website in HTML only and used CSS for style. Please help me. |
|
|
|
#2
|
||||
|
||||
|
Re: Home page contents must occur in every link that is opened
Can we see the code of your website and/or an example?
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#3
|
|||
|
|||
|
Re: Home page contents must occur in every link that is opened
hi , i have attached zip file of my project. You can open the index.html file and see the site.
|
|
#4
|
|||
|
|||
|
Re: Home page contents must occur in every link that is opened
Please provide a link instead as it is much easier to get help this way.
|
|
#5
|
|||
|
|||
|
Re: Home page contents must occur in every link that is opened
i havent uploaded it yet. still doing offline only. thats why i have attached the file which have details .
|
|
#6
|
||||
|
||||
|
Re: Home page contents must occur in every link that is opened
Nobody will want to download it,
just put it on freewebs or some other free host!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#7
|
|||
|
|||
|
Re: Home page contents must occur in every link that is opened
You could use php to acheive this. That way you only need the one file as the index page and the only thing that changes is the content
This is a very basic version of what you could do
example of firstpage.php and the same for any other pages including home.php
|
|
#8
|
|||
|
|||
|
Re: Home page contents must occur in every link that is opened
my website address is http://www.freewebs.com/luckyros
|
|
#9
|
|||
|
|||
|
Re: Home page contents must occur in every link that is opened
Quote:
|
|
#10
|
|||
|
|||
|
Re: Home page contents must occur in every link that is opened
Your link doesn't work.....
First of all, you need to make sure the server supports php In the example i gave, that is your index page so you would call that index.php becuase it has php in the code. This page is the only page which has all your links and page structure in it so you'll be fine with the page you have but you just need to call it index.php Where ever you have a link you need to put index?page= and the name of the page you want to direct to. So if you wanted to go to the contact page you would put index.php?page=contact. This goes for all of you links. When you click a link, the url index.php?page=contact gets put in the address bar and the browser reloads the index page and as the code is getting read, it comes across the switch statement which would be in the div where you want your content to change
Now its got the page name whcih would be contact, it goes down the next part which is include the page contact.php or contact.htm If you notice at the bottom there is default: what's included in there is the default page so when you first view the page, there is a default page to include. Just remember that your page name after the index.php?page= is the same as in the switch statement. If you have any more questions just ask |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Any ideas for my home page | Oak | Website Planning | 4 | Feb 6th, 2008 00:30 |
| My home page doesn't show | spacefonkey | Starting Out | 4 | Jun 28th, 2007 21:02 |
| Home page | hello123 | Starting Out | 4 | Feb 13th, 2007 14:40 |
| Make this my home page | joshcxa | JavaScript Forum | 2 | May 22nd, 2006 06:16 |