Rome hotels - French Property - Pool Installation - Debt Consolidation - Pinnacle Sports Review

PDA

View Full Version : Javascript to hide code in a page


Jboo
Jun 11th 2007, 4:44 am
Hi,

I know nothing about javascript or databases but I'll try and explain what I'm trying to do as best I can and hopefully someone can help.

I have a site that runs using an article directory script. As it runs using templates all of the pages look the same with adsense running in them. However, I would like to remove adsense from pages under certain categories.

When I go into PHPMyAdmin to view the database the 'field' that has the category is called "category_id".

I can't include PHP in the templates themselves so is there anyway that I could remove adsense using javascript for certain categories. I'm guessing it would need some sort of script where "articles under category X" will not display the adsense ads.

Any help or suggestions would be great.

Thanks in advance.

joesgraphics
Jun 11th 2007, 6:12 am
You could use javascript if you have a div with an id or a class around the adverts if you have a link to the site i can make the code for you.

rochow
Jun 11th 2007, 6:16 am
If you can't use php includes, go with JoesGraphics idea

Jboo
Jun 11th 2007, 6:20 am
You could use javascript if you have a div with an id or a class around the adverts if you have a link to the site i can make the code for you.

That would be great, I'll PM you. Thanks a lot.