Anime Online
Home Forums Gallery Reviews RPG Arcade FleaMarket Links Rules / FAQ

Welcome to AnimeOnline.net, your personal Anime Community!

Anime Online Rulez!

Go Back   Anime Online > Art and Design > Graphics, Wallpaper and Web Design > Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old Apr 24, 2006, 10:55 AM   #1 (permalink)
Shining Star
 
Join Date: Oct 2004
Location: North Carolina
Posts: 2,520
Thanks: 0
Thanked 0 Times in 0 Posts
Sinistra will become famous soon enoughSinistra will become famous soon enough
Credits: 1,234
PHP Include Header/Footer

This is a real simple Tutorial This tut will help you make a easy way to update site links on the fly. all you need is 3 files

Now to get started.

your Header will be your most inportent part because it has to include your CSS if you have any astablished.

OK to get started on this you will need your favorate text editor. Dreamweaver and notepad are great tools for HTML coding. Now create a new file call it header.php and paste the fallowing.

Example header
HTML Code:
<html> <head> <title>Enter Title Here</title> <link rel="stylesheet" href="style.css" type="text/css"> <STYLE type="text/css"> <!--
BODY {
scrollbar-face-color: #E8EAFF;
scrollbar-highlight-color: #A3B0F1;
scrollbar-3dlight-color: #454E7B;
scrollbar-darkshadow-color:#434D35;
scrollbar-shadow-color: #C0C9F6;
scrollbar-arrow-color: #000000;
scrollbar-track-color: #B9C2E5;
}
--> </STYLE> </head> <body background="back.jpg"> <table width="700" border="0" cellspacing="0" cellpadding="0" align="center"
class="outline"> <tr> <td class="botline"><img src="wink.jpg" width="755" height="200"></td> </tr> <tr> <td> <table width="104%" border="0" cellspacing="3" cellpadding="2" name="body"> <tr> <td valign="top" width="127"><!--start left navagation--> <table width="100%" border="0" cellspacing="1" cellpadding="1" class="outline"
name="menu"> <tr> <td class="head"> Name</td> </tr> <tr> <td class="menuBody">|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br></td> </tr> </table> <br> <table width="100%" border="0" cellspacing="1" cellpadding="1" class="outline"
name="menu"> <tr> <td class="head"> Name</td> </tr> <tr> <td class="menuBody">|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br></td> </tr> </table> <BR> <table width="100%" border="0" cellspacing="1" cellpadding="1" class="outline"
name="menu"> <tr> <td class="head"> Name</td> </tr> <tr> <td class="menuBody">|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br></td> </tr> </table> <!--end of left navagation--></td> <td width="455" valign="top" class="outline">
It should give you something like this..

header.php View
as you can see your header is your main logo and your left side link bar

Now Lets create a new file and call it footer.php.

and paste the fallowing..

HTML Code:
</td> <td valign="top" width="151"><!--start right navagation--> <table width="100%" border="0" cellspacing="1" cellpadding="1" class="outline"
name="menu"> <tr> <td class="head"> Name</td> </tr> <tr> <td class="menuBody">|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br></tr> </table> <br> <table width="100%" border="0" cellspacing="1" cellpadding="1" class="outline"
name="menu"> <tr> <td class="head"> Name</td> </tr> <tr> <td class="menuBody">|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br></tr> </table> <br> <table width="100%" border="0" cellspacing="1" cellpadding="1" class="outline"
name="menu"> <tr> <td class="head"> Name</td> </tr> <tr> <td class="menuBody">|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br>
|+|<a href="http://www.link.com"> Link</a><br></tr> </table> </td> </tr> </table> <img src="bottom.jpg"></td> </tr> <tr> <td height="16" class="outline">&nbsp;</td> </tr> </table> </body> </html>
Footer.php View

Now Create a file and call it index.php

Paste the fallowing,

Code:
<?php include='header.php'?>
Content gose here
<?php include='footer.php'?>
When you open your index.php on your main site you should get something like this

Final Design

I hope this was a big help in your coding and real easy for the beginners to learn.

ENJOY!
__________________

Last edited by Sinistra; Apr 24, 2006 at 11:01 AM.
Status: Offline
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 27, 2006, 02:47 AM   #2 (permalink)
Impossible to gauge!
 
AnataBakaDesu's Avatar
 
Join Date: May 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
AnataBakaDesu will become famous soon enoughAnataBakaDesu will become famous soon enough
Credits: 110
Re: PHP Include Header/Footer

cool !! but, anyone knows a free website that lets you to make a HTML based website but for free? i mean and it will be .net or .com or .org .. not like:
www.mywebsitenamehere.thewebsiteserver.com/net ... i want it to be directly .net or .com ... waiting for ur post
__________________
Status: Offline
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 27, 2006, 06:32 AM   #3 (permalink)
2 Highscores
curious kitty
 
ketaro's Avatar
 
Join Date: Apr 2005
Location: In a town full of computer hackers called Bantown
Posts: 4,164
Thanks: 20
Thanked 27 Times in 25 Posts
ketaro will become famous soon enoughketaro will become famous soon enough
Credits: 18,577
Re: PHP Include Header/Footer

hey thanks lord k for the info.
Status: Offline
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP to img Vampire The Vault 0 Mar 03, 2005 11:28 AM
Php, How does it work? Macky The Vault 2 Nov 30, 2004 08:33 PM

 


All times are GMT -7. The time now is 11:09 PM.


Ringtones | Anime Avatars | Wallpapers | Anime Girls | Anime Buddy Icons
Anime Online Banners by fooligar. ©
This Anime skin cannot be reproduced on any website without written permission from the Anime Online Staff.
Ad Management by RedTyger

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98