Forum Moderators: open

Message Too Old, No Replies

adding Adsense to every users page (on free hosting)

         

juice99

2:04 pm on Jul 12, 2005 (gmt 0)

10+ Year Member



Im running free webhosting server. Im trying to add Adsense ads on every users page, but its very nasty if user has page with frames (it ads to every page, so it can be 2 or 3 times on the same page). Not only its agaisnt Google TOS i think, but also it looks ugly.

I also, have to run the same code for every page. I mean with frames or not. So i thought - what if this script will check window height and width, and if its more than lets say 500x350 or something like that, then it will run this Google Adsense script, and if not, it will not run it :)

So even if this code ads to menu.html from pages with frames, it will not run becouse usually people dont make menu frames bigger than content frames :)

What do you think, is it possible, and if yes, maybe someone have seen such thing? i was looking for it on hotscripts.com but without any luck

Angelis

2:07 pm on Jul 12, 2005 (gmt 0)

10+ Year Member



I need something similar which will add a site navigation menu 20px high at the top of every page without changing too much code.

I thought it could be done with htaccess but I dont know.

Anyone have any ideas...

juice99

1:43 am on Jul 14, 2005 (gmt 0)

10+ Year Member



i have no ideas, even tho im looking for it for more than a week :(

Also, the important thing is how are you going to inject your code to users pages.

I think i have two options, Apache with add-footer directives, and also apache with some kind of rare mod that ads some code after specific tags...

what are you using?