Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Locked Topic
[Solved][Solved]Changing Google Ad Background
Topic Started: Feb 24 2008, 06:02 AM (2,010 Views)
Sith_Lord
Patronizing incurable lies
[ *  * ]
Is it possible on ZetaBoards?

Here's my theme test board:
http://s1.zetaboards.com/Dark_Acid/index/

Thank you. ^_^
Offline Profile Goto Top
 
Nicola
Darth Vader's Sewing Instructor
[ *  *  *  *  *  *  * ]
I haven't personally yet been able to determine which class/ID in the CSS that the ads use (don't really have the time), but if you fully edit the default the ads should change to match the theme.
Offline Profile Goto Top
 
Sith_Lord
Patronizing incurable lies
[ *  * ]
Well, I can tell you one thing. The ad background did match until I added a repeating image to the td bit. I will experiment more and see if I can figure it out though.
Edited by Sith_Lord, Feb 24 2008, 06:16 AM.
Offline Profile Goto Top
 
Sith_Lord
Patronizing incurable lies
[ *  * ]
I have managed to fix the problem myself. I removed the background image properties from the td and added general td classes to add the background everywhere else.

Quote:
 
td {
background:#202a34;
color:#768b90;
padding:5px 10px;
}

/* Add General Row Images */
.forums td, .posts td, .calendar td {
background:#202a34 url(http://z3.ifrm.com/53/36/0/p11582/Rn.jpg) repeat-x;
}

(Fixed it on a different skin.)
Edited by Sith_Lord, Mar 3 2008, 10:57 AM.
Offline Profile Goto Top
 
Nicola
Darth Vader's Sewing Instructor
[ *  *  *  *  *  *  * ]
Ooh that's not a great idea I don't think. Not every table has a class.
Offline Profile Goto Top
 
Sith_Lord
Patronizing incurable lies
[ *  * ]
I know, but it's the best compromise for now. :/ Any other suggestions?
Offline Profile Goto Top
 
Nicola
Darth Vader's Sewing Instructor
[ *  *  *  *  *  *  * ]
You could use a *lot* of Jquery to give every table a class, but quite honestly it's a bit far to go to not colour the cell behind the google ads.
Offline Profile Goto Top
 
FearMyWrench
5 Cups of Ubuntu
[ * ]
Code:
 

td {
background:#xxxxxx;
}


would be what controls the google ads background.
Offline Profile Goto Top
 
Nicola
Darth Vader's Sewing Instructor
[ *  *  *  *  *  *  * ]
Justin125
Mar 23 2008, 03:12 AM
Code:
 

td {
background:#xxxxxx;
}


would be what controls the google ads background.
Please read the whole topic before posting. That only changes the cell around the ads. Sith wants to know how to specifically change it while leaving the default 'td' a particular colour.
I.e he wants to have for example, white cells everywhere but the cell behind the ads to be black.
Offline Profile Goto Top
 
Chris
Member Avatar
Member
[ *  *  *  * ]
I'm not sure if there is anything against it in the rule book, but this should work for adding a class:
(Supposing you don't have anything above the ads.)

Quote:
 
<script type="text/javascript">
$("#main table:eq(0)").attr("id", "google-ads");
</script>

Then just use #google-ads td to style the td.

Edit:

This part will only work for the Front Page. I wouldn't use it if I were you. :|
(The Google Ads aren't always the First table. :o )
Edited by Chris, Mar 23 2008, 04:09 PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Theme & CSS Help · Next Topic »
Locked Topic