![]() |
| Welcome to AnimeOnline.net, your personal Anime Community! | Anime Online Rulez! |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
Shining Star Join Date: Oct 2004 Location: North Carolina
Posts: 2,520
Thanks: 0
Thanked 0 Times in 0 Posts
![]() ![]() 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"> 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"> </td> </tr> </table> </body> </html> Now Create a file and call it index.php Paste the fallowing, Code: <?php include='header.php'?> Content gose here <?php include='footer.php'?> 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
| |
| | #2 (permalink) |
| Impossible to gauge! | 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
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |