Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-11-2012, 10:58 PM   PM User | #16
SeattleMicah
Regular Coder

 
Join Date: Dec 2011
Posts: 201
Thanks: 12
Thanked 26 Times in 26 Posts
SeattleMicah is an unknown quantity at this point
try pasting where <--incude header--> is

PHP Code:
<?php
include("header.php");
?>

Code:
</head>
<body style="margin:0;">


<!--- include header --->


<script language="javascript" src="header.html">
</script>
<div align="center">
this is for the newsandevents.php file.
__________________
http://getfirebug.com/
SeattleMicah is offline   Reply With Quote
Old 06-11-2012, 10:58 PM   PM User | #17
SeattleMicah
Regular Coder

 
Join Date: Dec 2011
Posts: 201
Thanks: 12
Thanked 26 Times in 26 Posts
SeattleMicah is an unknown quantity at this point
you can only use this include technique when your file if of PHP nature, if it is .html you will have to copy paste like we did
__________________
http://getfirebug.com/
SeattleMicah is offline   Reply With Quote
Old 06-13-2012, 04:41 PM   PM User | #18
toraymoray
New Coder

 
Join Date: Jun 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
toraymoray is an unknown quantity at this point
***I tried sending this as a PM twice and i don't think it went through... so here it is again. apologies if you actually did receive this already.***

OK i put the code where you said to, it looks like this:

</head>
<body style="margin:0;">
<!--- include header --->
<!--?php
include("header.php");
?-->
<script language="javascript" src="header.html">

you can see the page here, it doesn't have a header.

toraymoray is offline   Reply With Quote
Old 06-13-2012, 04:42 PM   PM User | #19
toraymoray
New Coder

 
Join Date: Jun 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
toraymoray is an unknown quantity at this point
Oops, here is the link:

http://www.mchistory.org/newsandevents2.php
toraymoray is offline   Reply With Quote
Old 06-13-2012, 06:32 PM   PM User | #20
toraymoray
New Coder

 
Join Date: Jun 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
toraymoray is an unknown quantity at this point
Since the header is just a bunch of images, can I put the header info in the CSS part? I just don't think that I can go through each page (i'm sure there are hundreds) and re-save each as a php and then include the header.php.

I have an intern here who suggested including it as part of the CSS since its just images in the header. Could that work?
toraymoray is offline   Reply With Quote
Reply

Bookmarks

Tags
header, html, java, non-profit

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:12 PM.


Advertisement
Log in to turn off these ads.