Create A Forum - Support Forums

Support => General Support => Topic started by: AnonyMister on March 04, 2013, 06:08:53 pm

Title: Opacity/Transparency For Membergroup Background Post Color Using JQuery Script?
Post by: AnonyMister on March 04, 2013, 06:08:53 pm
For a few days now, I have looked everywhere online, and I feel it is not possible. :(

(https://support.createaforum.com/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F18hje8.jpg&hash=2e0ae775b6cd6638641b4147e67c4f06b8146c37)

Brief Overview,

Header JQuery Script:
Code: [Select]
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> Footer JQuery Script:
Code: [Select]
<script>function xboi209_colormembergroupposts(membergroup,color){$("li.membergroup:contains('"+membergroup+"')").closest("div.post_wrapper").css("background-color",color)}xboi209_colormembergroupposts("Moderator","DarkGreen");</script>
I have added an opacity attribute set to .9 in my CSS style for my background which makes everything transparent (No problem),
Yet I'd still like to somehow make the transparency of that green color in a Moderator's a little more... Well.. Transparent -- How?

* Is there any coding I can add into xboi's JQuery code that can allow an opacity change?
- If so, what is it?

:P Please keep in mind too, I am not the best coder out there. So, you know...

Merry Monday,
Nick
Title: Re: Opacity/Transparency For Membergroup Background Post Color Using JQuery Script?
Post by: aIURbliS on March 04, 2013, 08:58:23 pm
Set the opacity lower to like .6
Title: Re: Opacity/Transparency For Membergroup Background Post Color Using JQuery Script?
Post by: AnonyMister on March 04, 2013, 10:25:11 pm
Actually, anything below .9 does become a problem in terms of legibility.support

Here is part of my CSS where I added in the opacity,

Code: [Select]
/* Set a fontsize that will look the same in all browsers. */
body
{
    background: url(http://i45.tinypic.com/animnb.jpg);
        background-attachment: fixed; /* force image to stay put */
    font: 78%/130% "Comic Sans MS", cursive, sans-serif;
    margin: 0 auto;
    padding: 15px 0;
        opacity:0.6;
}

There is nothing I can do to only lighten the colors from your code or in the CSS style (Dark_Green)?support

Edit: I would like it to look something like this guys':
http://support.createaforum.com/5/%28code%29-color-membergroup-posts/

'Thorton...' has a screenshot in one of his posts.

I am not sure if it is because he has a white background, or what.

Here is my forum link just in case you need a better visual of what I am working with:
http://beardedcraft.createaforum.com/
Title: Re: Opacity/Transparency For Membergroup Background Post Color Using JQuery Script?
Post by: aIURbliS on March 05, 2013, 08:56:57 pm
If legibility is a problem, maybe a different font will help. Thornton doesn't have a transparent background for his posts. You can lighten the background color of posts by using a hex color code to be specific in which color you want: http://www.colorpicker.com/
Title: Re: Opacity/Transparency For Membergroup Background Post Color Using JQuery Script?
Post by: AnonyMister on March 06, 2013, 08:42:22 pm
The font is fine. ;)

Thank you though, that is not a bad idea just blending the background in a bit more.