Shoutbox

website design - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: website design (/showthread.php?tid=91227)

website design by freakuency on 06-27-2009 at 12:36 AM

Hi, I'm new here
I donno if this is the right place to ask web site developing questions :)
I'm trying to create a website and the other day I saw the new utorrent site [link]www.utorrent.com[/link] I really liked the idea of the logo and navigation bar integration for all the pages but I have no idea how to do it. What I mean is that the logo and navig bar stays the same and the pages load below that header. Does anyone know how to make this possible? Thanks


RE: website design by Thor on 06-27-2009 at 12:38 AM

You include the header in all the other pages and voila.


No seriously, there's no big deal. Just make a logo + navigation and add it to every page. Voila.


RE: website design by freakuency on 06-27-2009 at 12:42 AM

thanks for the reply
I guess the header would be a better option
do u know where i can find code examples of such headers?


RE: website design by Thor on 06-27-2009 at 12:55 AM

Have a Google query!


RE: website design by Vilkku on 06-27-2009 at 12:56 AM

What Thor means is that you simply make a page, and then copy the start of the page so that it is the same on all pages, you can do it however you like...

To make it easier/faster, you can put the code of the start of the page in a separate file and include that file in all your documents - that way, you only need to edit one file and the change will be visible on all pages. Here is a pretty good article describing some ways of including files.


RE: website design by freakuency on 06-27-2009 at 01:05 AM

thanks a lot i will try that but will this work if some of my pages are in PHP? or do I need to create different headers? Im really new to coding n stuff :)


RE: RE: website design by Salem on 07-01-2009 at 11:37 AM

quote:
Originally posted by freakuency
thanks a lot i will try that but will this work if some of my pages are in PHP? or do I need to create different headers? Im really new to coding n stuff :)

Yes, that can be done in PHP pages. I use it on my sites.

code:
<?php
    include ("path/to/file.php);
?>

Hope this helps. Let me know if you need more help.

~Salem(@)