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,013 Views)
RyuraGS
Member Avatar
Member
[ *  *  * ]
Nicola
Mar 8 2008, 06:47 AM
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.
Giving every table a class would be a 3 line code.
Offline Profile Goto Top
 
Nicola
Darth Vader's Sewing Instructor
[ *  *  *  *  *  *  * ]
GenerationStudio
Mar 23 2008, 04:10 PM
Nicola
Mar 8 2008, 06:47 AM
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.
Giving every table a class would be a 3 line code.
I was referring to giving every table it's own class :P

Edit: Then of course, how do you make it say "except this table here with the ads" if you were to use 3 lines to give every table it's own class? And then what if you use tables in posts/blogs?
Offline Profile Goto Top
 
RyuraGS
Member Avatar
Member
[ *  *  * ]
Nicola
Mar 23 2008, 04:16 PM
GenerationStudio
Mar 23 2008, 04:10 PM
Nicola
Mar 8 2008, 06:47 AM
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.
Giving every table a class would be a 3 line code.
I was referring to giving every table it's own class :P
That's easy as well.
Quote:
 
$(function() {
$('table').each(function(i) {
$(this).addClass('tableclass'+i);
});
});


In response to your edit:
This isn't perfect, but
Quote:
 
$("table:has('iframe')").addClass("hello");
Edited by RyuraGS, Mar 23 2008, 04:21 PM.
Offline Profile Goto Top
 
Nicola
Darth Vader's Sewing Instructor
[ *  *  *  *  *  *  * ]
Okay so now you just need lots of CSS to style every individual table, which requires you to hunt around in all areas of the forum and find out which class is which...?

I have to say this before it gets silly: Sith, get over it, it's one cell. It's not going to ruin your skins :ermm:
Offline Profile Goto Top
 
RyuraGS
Member Avatar
Member
[ *  *  * ]
Nicola
Mar 23 2008, 04:21 PM
Okay so now you just need lots of CSS to style every individual table, which requires you to hunt around in all areas of the forum and find out which class is which...?

I have to say this before it gets silly: Sith, get over it, it's one cell. It's not going to ruin your skins :ermm:
See my edit; that's probably the best way to do it. I don't think any other native ZB table has an iframe.
Offline Profile Goto Top
 
Chris
Member Avatar
Member
[ *  *  *  * ]
Maybe instead of contains,

$("table").children("iframe").parent().attr("id", "google-ads");

That is, assuming what you have: that there are no other tables with iFrames.
Edited by Chris, Mar 23 2008, 04:30 PM.
Offline Profile Goto Top
 
Nicola
Darth Vader's Sewing Instructor
[ *  *  *  *  *  *  * ]
You've seen the amount of boards owners who think iFrames are cool, right? :P

I still find this completely silly. It's a cell behind the google ads. Sith and others need to get over it and accept the fact the google ads are in a table with no id or class.
Offline Profile Goto Top
 
Chris
Member Avatar
Member
[ *  *  *  * ]
Nicola
Mar 23 2008, 04:26 PM
You've seen the amount of boards owners who think iFrames are cool, right? :P

I still find this completely silly. It's a cell behind the google ads. Sith and others need to get over it and accept the fact the google ads are in a table with no id or class.
Just trying to help :$

But that first part is so, sadly, true..
Offline Profile Goto Top
 
Ziz
Member Avatar
Prototype - Trinity
[ *  * ]
Even though it's not a big deal, is there anyway to fix the Google ad problem without inserting a billion lines of coding that could possibly screw up other things? Somebody made me a skin a while back, and I don't really want to post the CSS, seeing as the skin was made for my forum. But the skin is a nice shade of blue with orange tables...... until you get to the bleach white Google Ad.

If anybody thinks they can fix it, I'll PM them the CSS. But if there's any fix I can try with my minimal CSS knowledge, I'd be more than willing to try it.
Offline Profile Goto Top
 
Dromin
Member Avatar
Color Member
[ *  * ]
Nicola
Mar 23 2008, 04:21 PM
it's one cell. It's not going to ruin your skins :ermm:
Actually, the color of the ads DOES ruin my skin. The skin I'm creating is pretty dark, so the white background of the google ads really sticks out. I'd like to have a fix for this too :-/

EDIT - Screenshot:

Posted Image
Edited by Dromin, Mar 24 2008, 10:16 AM.
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