Forum Moderators: coopster

Message Too Old, No Replies

Google Adsense Css Stylesheet Change?

         

tonyriley

9:16 am on Feb 8, 2004 (gmt 0)

10+ Year Member



Hey all, Im making a new design which uses just css but have came over a problem I'm not to sure about. The new site will have multiple styles which can be switched to the users preference and saved with a cookie, and the main change is colour. Obviously, this way, the google adsense wont match the other styles colour scheme so is there any way I can change the adsense code with each style sheet?

I dont mean hacking the javascript, but something like storing different pallete codes in a .txt file, and having a php variable for the style name, and depending which style is set, the google ad changes to match that?

Anyone know of a way?

Will appreciate it.
Thanks

coopster

4:45 pm on Feb 10, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, tonyriley!

Have you read Server Side Scripting in CSS Files [webmasterworld.com]? It may give you some ideas.