Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

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
Trades: 0
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
 
 
Register now for full access!
Old 07-01-2003, 02:42 PM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 07-01-2003, 02:55 PM
Omega's Avatar
Extreme Talker

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

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

Put it where you want the file to show.
__________________
-----------------------------------------------
Current Projects:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
Omega is offline
Reply With Quote
View Public Profile Visit Omega's homepage!
 
Old 07-01-2003, 02:56 PM
Average Talker

Posts: 22
Trades: 0
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
Trades: 0
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

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
no.

you can have it as abc.inc
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 07-01-2003, 03:35 PM
Average Talker

Posts: 22
Trades: 0
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
Trades: 0
On some servers it will. It worked on my server, but not a recent one I was hosted with...

Test it out.
__________________
-----------------------------------------------
Current Projects:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.27530 seconds with 12 queries