TWC Today Forums

Other => General Discussion => Topic started by: Gil on December 26, 2008, 12:05:44 PM

Title: Website help?
Post by: Gil on December 26, 2008, 12:05:44 PM
I'm wondering if there's a way to save the header and footer of my webpage into a seperate file, and have all of the other pages reference that file, versus having to transfer all of the HTML crap into each page.

HTML or CSS, possibly?
Title: Re: Website help?
Post by: TWCToday on December 26, 2008, 01:07:00 PM
I would also like to know how to do this. In the past I have used Frontpage/Sharepoint to simply create a dynamic template that would update each of my pages in the site by iteself whenever I made a change to the template.
Title: Re: Website help?
Post by: Al on December 26, 2008, 02:16:08 PM
most def. CSS.

wow it's been a while since i've made a style sheet, but I believe it'd be much easier.
Title: Re: Website help?
Post by: beanboy89 on December 26, 2008, 02:26:37 PM
You could also do it using frames. :yes:
Title: Re: Website help?
Post by: Gil on December 26, 2008, 02:31:44 PM
Frames are outdated, and kind of a pain to work with. :hmm:

Whoever can make a stylesheet for me can earn a shiny new nickel. :D
Title: Re: Website help?
Post by: lfmusiclover on December 26, 2008, 03:55:43 PM
Where is Jesse? I'm sure he could help you with this. He's good with this kind of stuff.  :yes:
Title: Re: Website help?
Post by: Gil on December 26, 2008, 04:36:23 PM
Jesse! Come here, boy! (haha, jk). :P
Title: Re: Website help?
Post by: jtmal0723 on December 26, 2008, 06:05:08 PM
PHP is your friend here... What you should do is create the header you want on all of your pages into one file, call it header.php if you want. Same for footer.... Then, what you should do is follow some simple stuff here:
Code: [Select]
<?PHP include("header.php"); ?>
Page content here
tables here
divs here
etc
<?PHP include("footer.php"); ?>

your header may look something like:
Code: [Select]
<html>
<head>
<title>Title here</title>
</head>
<body>
<p><img src="logo.png"></p>

and your footer might look something like:
Code: [Select]
<p>&copy; 2009 Your Site Company here.</p>
</body>
</html>

this is just your basics, but if you know HTML and such, you can move on from here  :yes:
Title: Re: Website help?
Post by: Gil on December 26, 2008, 06:21:22 PM
No PHP on the server. :no:
Title: Re: Website help?
Post by: jtmal0723 on December 26, 2008, 06:44:05 PM
No PHP on the server. :no:
then you're out of luck -- you'll have to use frames or iframes or you'll just have to copy and paste to all of the pages every time you make a change. Sorry :( PHP is the easiest solution
Title: Re: Website help?
Post by: Gil on December 26, 2008, 06:44:51 PM
What is an iframe? :huh:
Title: Re: Website help?
Post by: Zach on December 26, 2008, 06:45:29 PM
Can anybody also generate code for my Geocities to have a still background while scrolling?

Thanks. :salute:
Title: Re: Website help?
Post by: Gil on December 26, 2008, 06:46:30 PM
Can anybody also generate code for my Geocities to have a still background while scrolling?

Thanks. :salute:
Hey, get your own thread! :censored: :P
Title: Re: Website help?
Post by: Zach on December 26, 2008, 06:50:33 PM
Can anybody also generate code for my Geocities to have a still background while scrolling?

Thanks. :salute:
Hey, get your own thread! :censored: :P
Well, it is for website help, isn't it? :whistling:
Title: Re: Website help?
Post by: jtmal0723 on December 26, 2008, 06:56:01 PM
that's a CSS thing, Chris. Look up CSS static background in google to see how to do it.
Title: Re: Website help?
Post by: TWCToday on December 26, 2008, 11:40:25 PM
What is an iframe? :huh:
Its an HTML page inside another HTML page. Sorta like a site in a site
Title: Re: Website help?
Post by: Gil on December 27, 2008, 12:16:09 AM
Oh yeah, I should've known that. :doh:

Thanks for the help, guys!
Title: Re: Website help?
Post by: Gil on December 29, 2008, 03:51:33 PM
I'd just like to point out that I made my very first, successful CSS page today! Though I did follow a guide closely, I still typed it all out and played around with it and everything. :happy: :dance: