Hi,

My site use Google AdSense and LOTS of external CSS files,
users are even able to create their own,
so I really need the ads to dynamically fit the CSS.

Example of AdSense code :

Code:
 <script type="text/javascript">
 <!--
 google_ad_client = "pub-1814817475011457";
 google_color_text = "999999";
 google_ad_channel ="4693942683";
 google_ad_type = "text";
 google_ad_width = 120;
 google_ad_height = 600;
 google_ad_format = "120x600_as";
 google_color_border = "FFFFFF";
 google_color_bg = "FFFFFF";
 google_color_link = "999999";
 google_color_url = "0066FF";
 //-->
 </script>
 
 <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
 </script>
Example of CSS file :

Code:
 <style type='text/css' media='screen'>@import "http://domain.com/banana.css";</style>
Example of property :

Code:
 .pineapple {
 color: #00ff00;
 }

So, what I need is the value of google_color_link (for example) to be defined in the external CSS file, retrieved from there, and used by the AdSense script.

I found that tutorial
http://javascriptkit.com/dhtmltutors...cascade4.shtml
But since I don't know JS at all I don't understand how to adapt the script to the AdSense one.


Can someone give a hand please ?
Thanks by advance.