TWC Today Forums
Other => General Discussion => Topic started 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?
-
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.
-
most def. CSS.
wow it's been a while since i've made a style sheet, but I believe it'd be much easier.
-
You could also do it using frames. :yes:
-
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
-
Where is Jesse? I'm sure he could help you with this. He's good with this kind of stuff. :yes:
-
Jesse! Come here, boy! (haha, jk). :P
-
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:
<?PHP include("header.php"); ?>
Page content here
tables here
divs here
etc
<?PHP include("footer.php"); ?>
your header may look something like:
<html>
<head>
<title>Title here</title>
</head>
<body>
<p><img src="logo.png"></p>
and your footer might look something like:
<p>© 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:
-
No PHP on the server. :no:
-
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
-
What is an iframe? :huh:
-
Can anybody also generate code for my Geocities to have a still background while scrolling?
Thanks. :salute:
-
Can anybody also generate code for my Geocities to have a still background while scrolling?
Thanks. :salute:
Hey, get your own thread! :censored: :P
-
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:
-
that's a CSS thing, Chris. Look up CSS static background in google to see how to do it.
-
What is an iframe? :huh:
Its an HTML page inside another HTML page. Sorta like a site in a site
-
Oh yeah, I should've known that. :doh:
Thanks for the help, guys!
-
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: