![]() |
|
#1
|
|||
|
|||
|
For example: I have google ads on the right side of my website, where I would put the ad, is there a way to link it to another html script without actually putting it in my html page? Kinda like a CSS sheet but the other way around. I don't want to have to go through every page to change the ad code, I just want to change an external sheet where the ad code is. I also want to do this for the body of my website where the content is. Can I link a external sheet that would input content into the body of the website?
__________________
turbo |
|
#2
|
||||
|
||||
|
Sounds like you would benefit from using php includes.
Assuming you have a half decent host that runs php. Create pages for ads, navigation, header, footer etc. with extension .php ad1.php ad2.php navigation.php header.php footer.php Then pop some code like this where you want it Code:
<?php include("ad1.php"); ?>
Code:
AddType application/x-httpd-php .html |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Html Tips for Newbies | solutionc | HTML Tips | 5 | 08-10-2010 01:12 AM |
| Is there is a special or secret way to use HTML while designing a webpage? | zerugaze | HTML Tips | 3 | 07-30-2010 12:58 PM |
| html vs. php | Daniel777 | PHP | 5 | 02-04-2010 03:50 AM |
| When did you learn HTML? | designer01 | HTML Tips | 18 | 07-12-2009 03:08 PM |
| Still haven't studied the HTML books... | Lee_the_Bee | HTML Tips | 1 | 02-03-2006 03:53 AM |