English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to add a banner to my website (using framesets, b/c it has to be in html). The problem is that I have many pages and I dont want to manually include the banner to everypage.

Just wondering if there is a way (maybe with css?) to automatically include the banner in the top of every page.

2007-05-29 03:37:26 · 6 answers · asked by at_radio 1 in Computers & Internet Programming & Design

6 answers

Two techniques:

Create a javascirpt program that writes out the banner code like,


document.writeln("This is my banner code here");
document.writeln("");


Then in all your pages simply add this javascript code.


That will bring in and display the information. A previous poster mentioned that users may hava javascript turned off. This is very unlikley , in 2007 you really cant use the Internet much without Javascript, very few if any users have it turned off

2007-06-06 00:36:06 · answer #1 · answered by acb29 4 · 0 0

I suppose you could add a small snippet of javascript at the top of each page to "document.writeln" the lines of code containing your banner statements, but this would be risky, as it would "assume" that each and every page viewer has javascript enabled. Any page viewer who does not have javascript enabled would not see the banner...

2007-05-29 05:46:12 · answer #2 · answered by fjpoblam 7 · 0 0

the only way that u can do it is if u have a main layout and add the banner on it then add a sub layout into the main layout so u dont have to add it to every page on ur site.

2007-05-29 03:59:03 · answer #3 · answered by PR78 4 · 0 0

Google Adsense is likely considered one of the ultimate techniques of coming up money and monetizing your revnue with your website. it somewhat is quite between the ultimate thank you to earn on line. There 1000's of persons making 1000's of dollors each and each month.

2016-10-06 06:04:32 · answer #4 · answered by faim 4 · 0 0

make a template page that only changes one part per page
or have fun
ctrl+c , ctrl+v, ctrl+v, ctrl+v, ctrl+v, ctrl+v, ctrl+v, ctrl+v, ctrl+v,

2007-05-29 03:41:21 · answer #5 · answered by Anonymous · 0 0

Have you looked into SSI?

2007-05-29 03:44:06 · answer #6 · answered by Robert S 6 · 0 0

fedest.com, questions and answers