Forum Moderators: not2easy

Message Too Old, No Replies

Adsense in header

         

mjkm

11:20 pm on Jan 11, 2008 (gmt 0)

10+ Year Member



Hi,

I'm trying to change a header to include adsense but I'm not having any success with it. Please can someone advise me. Here's the current header css code:

#header{
position: relative;top:0px;left:0px;
width:766px;
height:133px;
background-image:url(http://*****/includes/stylesheets/images/concert5k.jpg);
background-repeat: no-repeat;
background-position:top left;
}

/*end header*/

Many thanks

mluddn

11:55 pm on Jan 11, 2008 (gmt 0)

10+ Year Member



What is troubling you, boy?

Your question is not very clear (for me)

This is a CSS code.. You want to include AdSense ads with CSS?

mjkm

12:00 am on Jan 12, 2008 (gmt 0)

10+ Year Member



Ideally with CSS as the site is 1500+ pages so I wanted to change our current image to replace it with a logo and leaderboard style adsense.

Thanks

lammert

11:55 pm on Jan 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



mjkm,
First of all Welcome to WebmasterWorld! [webmasterworld.com]

CSS files can only contain formatting options for your layout. The AdSense code is Javascript and must be embedded in the HTML part of your pages. If your site contains 1500 separate HTML pages, this unfortunately means updating all those documents. If you however use a scripting language like PHP or ASP to generate your site, you can put the AdSense code in one single file and include that from your scripts.

Can you give a little bit more information how you site is currently structured so we can give some directions to the best solution?