Reply
CSS footer, how to do include so same on every page?
Old 07-01-2003, 01:43 PM CSS footer, how to do include so same on every page?
Average Talker

Posts: 22
I have a website that is using CSS. I have a footer defined.
I want the footer to be the same on every page. Have the same content.

Is there a way to do some sort of include so I only have to modify one file if I want to change it?

Thanks
cgchris99 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-01-2003, 02:42 PM
praveen's Avatar
Life is a Dream

Latest Blog Post:
Gmail has Themes!
Posts: 3,576
Location: in a distant land far away from reality
you can have it as a js file and use document.write to write it to the pages .

else you can use ssi to include one inc file in all pages.

do u use any server side scripting??

if yes, then it is easy.
__________________
Praveen
Web Tools - Smilies - Celebs - Short URLs - Indian Food - Create a Poll - Social Bookmark Widget

Useful Threads, Tutorials and Resources
Graphics - Templates - Dreamweaver - Javascript - SEO - Ruby on Rails - Ajax Tutorials - More Ajax - CSS - More CSS
praveen is offline
Reply With Quote
View Public Profile Visit praveen's homepage!
 
Old 07-01-2003, 02:55 PM
Omega's Avatar
Extreme Talker

Posts: 234
Location: Sharpsville, PA
Like this...

<?php include("whatever.file") ?>

Put it where you want the file to show.
__________________
-----------------------------------------------
Current Projects:Texas Silver Rush | Back In The Day Sports

Omega Media Design
Omega is offline
Reply With Quote
View Public Profile Visit Omega's homepage!
 
Old 07-01-2003, 02:56 PM
Average Talker

Posts: 22
I want to make sure it's crawlable by google. So Javascript it out.
cgchris99 is offline
Reply With Quote
View Public Profile
 
Old 07-01-2003, 02:57 PM
Average Talker

Posts: 22
The PHP will only work if the file is named phpfile.php ?
Right?
cgchris99 is offline
Reply With Quote
View Public Profile
 
Old 07-01-2003, 03:16 PM
praveen's Avatar
Life is a Dream

Latest Blog Post:
Gmail has Themes!
Posts: 3,576
Location: in a distant land far away from reality
no.

you can have it as abc.inc
__________________
Praveen
Web Tools - Smilies - Celebs - Short URLs - Indian Food - Create a Poll - Social Bookmark Widget

Useful Threads, Tutorials and Resources
Graphics - Templates - Dreamweaver - Javascript - SEO - Ruby on Rails - Ajax Tutorials - More Ajax - CSS - More CSS
praveen is offline
Reply With Quote
View Public Profile Visit praveen's homepage!
 
Old 07-01-2003, 03:35 PM
Average Talker

Posts: 22
So a file that is index.html can have
<?php include("whatever.file") ?>
in it?

I didn't know that would work.
cgchris99 is offline
Reply With Quote
View Public Profile
 
Old 07-01-2003, 04:16 PM
Omega's Avatar
Extreme Talker

Posts: 234
Location: Sharpsville, PA
On some servers it will. It worked on my server, but not a recent one I was hosted with...

Test it out.
__________________
-----------------------------------------------
Current Projects:Texas Silver Rush | Back In The Day Sports

Omega Media Design
Omega is offline
Reply With Quote
View Public Profile Visit Omega's homepage!
 
Reply     « Reply to CSS footer, how to do include so same on every page?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13959 seconds with 12 queries