Hi, to begin a big sorry for my english - i dont speak it so good. What i do? - i insert textads in my openx in HTML with an extern CSS file and serving this on my website. What i wanna do? i wanna change the complete CSS in javascript and this serving in my textads like this code: <!-- My AdCode --> <script type="text/javascript"> //Html display settings; Ads_Displaymode = { Ads_align: { AD_TITEL:'left', // align Title. Left, center or right. AD_TEXT:'left', // align Text. Left, center or right. AD_SITENAME:'right'},// align Sitename. Left, center or right. Ads_design: { AD_WIDTH: '468', // ad width AD_HEIGHT. '60', // ad height AD_BORDER:'#6495ED', // ad border AD_BACKGROUND:'#F5F5F5', // background AD_TITLE:'#0033FF', // title AD_TEXT:'#000000', // text AD_POWERED:'http://www.mydomain.com/images/logo.gif', // Site minilogo 90x15px align right } }; //End of Html settings </script><script type="text/javascript" src="http://www.domain.com/myad.js"></script> <!-- End My AdCode --> HTML: This is my CSS: #my_ad { width: 300px; height: 250px; border-width: 1px; border-style: solid; border-color: #6495ED; padding-left: 5px; padding-top: 5px; font-size: 13px; font-family: arial,sans-serif; } .my_titel { width: 230px; margin-top: 7px; margin-bottom: 1px; border: none; font-size: 13px; font-family: arial,sans-serif; color:#991919; font-weight: bold; text-align: left; cursor: pointer; text-decoration : underline; } .my_text { margin-top: 1px; margin-bottom: 1px; margin-right: 20px; border: none; font-size: 13px; font-family: arial,sans-serif; color:#000000; font-weight: none; float: left; } .my_img { width: 74px; height: 100px; float: right; margin: 0 0 10px 10px; padding: 2px; border: double 2px #1e90ff; } .my_site { padding-top: 0px; padding-left: 0px; } .my_adlink { text-decoration : underline; margin-top: 0px; margin-bottom: 1px; color: #000000; font-size: 11px; font-family: arial,sans-serif; font-weight: none; text-align: right; cursor: pointer; } a.my_adlink { color:#991919; text-decoration : underline; cursor: pointer; font-size: 13px; font-family: arial,sans-serif; } a.my_adlink: visited { color:#991919; text-decoration : underline; cursor: pointer; font-size: 13px; font-family: arial,sans-serif; } a.my_adlink:hover { color:#991919; text-decoration : underline; cursor: pointer; font-size: 13px; font-family: arial,sans-serif; } a.my_adlink:active { color:#991919; text-decoration : underline; cursor: pointer; font-size: 13px; font-family: arial,sans-serif; } HTML: ...and my HTML code, you can see it here: <link rel="stylesheet" href="http://www.mydomain.com/ads/ad300.css" type="text/css"> <div id="ox300"> <a class="ox300" href="http://www.domain.com" onmouseover="window.status='Visit this site!'; return true"></a> <div id="ox300_class0"> <div id="ox300_class1"><a class="ox300_class1" href="http://www.mydomain.com/index.php" onmouseover="window.status='Visit this site!'; return true">Ad_Title here</a></div> <div id="ox300_class2"> Ad_text here <br /> ...more ad_text here! </div> <div id="ox300_class1"><a class="ox300_class1" href="http://www.domain.com" onmouseover="window.status='Visit this site!'; return true">Ad_Title here</a></div> <div id="ox300_class2"> Ad_text here <br /> ...more ad_text here! </div> <div id="ox300_class1"><a class="ox300_class1" href="http://www.mydomain.com" onmouseover="window.status='Visit this site!'; return true">Ad_Title here</a></div> <div id="ox300_class2"> Ad_text here <br /> ...more ad_text here! </div> </div> </div> HTML: Please send me your conditions via pm Regards
- Style Sheet Switcher v1.0 - Change Style - Change Tag Style and more JavaScript code for changing style/CSS on your webpage
Hi, sorry, but your recommends dont help me real. I wanna transform the CSS code into Javascript ...all ID's from CSS, all dimensions, colours, etc. - I dont need a styleswitcher or so Regards