change google ads colours depending on stylehseet

Joined
12 Feb 2006
Posts
17,644
Location
Surrey
is this possible? to have google ads change colour dpeending on what stlye sheet is choosen?

i ask as i have 4 different stylesheets with very differnt colours themes, and the google ads are matching the default theme, but the rest it wont.

thanks
 
No, because Google Ads appear dynamically in an <iframe>, and there's no way [afaik] to access the contents of an iframe with CSS selectors.

You're likely going to have to do it server-side, or perhaps with javascript when you switch stylesheets, and update the values of the ad colourscheme:

Code:
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
-->
etc.

Or switch to to a different ad-tag.
 
Back
Top Bottom