DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: General Support
*****************************************************
#Post#: 8670--------------------------------------------------
Opacity/Transparency For Membergroup Background Post Color Using
JQuery Script?
DIR By: AnonyMister
Date: March 4, 2013, 12:08 pm
---------------------------------------------------------
For a few days now, I have looked everywhere online, and I feel
it is not possible. :(
[IMG]
HTML http://i47.tinypic.com/18hje8.jpg[/img]
Brief Overview,
Header JQuery Script:
--- Code ---
<script
src="
HTML http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><br
/>
--- End Code ---
Footer JQuery Script:
--- Code ---
<script>function
xboi209_colormembergroupposts(membergroup,color){$("li.membergroup:contains('"+membergroup+"')").closest("div.post_wrapper").css("background-color",color)}xboi209_colormembergroupposts("Moderator","DarkGreen");</script>
--- End Code ---
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
#Post#: 8676--------------------------------------------------
Re: Opacity/Transparency For Membergroup Background Post Color
Using JQuery Script?
DIR By: xboi209
Date: March 4, 2013, 2:58 pm
---------------------------------------------------------
Set the opacity lower to like .6
#Post#: 8677--------------------------------------------------
Re: Opacity/Transparency For Membergroup Background Post Color
Using JQuery Script?
DIR By: AnonyMister
Date: March 4, 2013, 4:25 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 ---
/* Set a fontsize that will look the same in all browsers. */
body
{
background: url(
HTML 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;
}
--- End Code ---
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':
HTML 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:
HTML http://beardedcraft.createaforum.com/
#Post#: 8678--------------------------------------------------
Re: Opacity/Transparency For Membergroup Background Post Color
Using JQuery Script?
DIR By: xboi209
Date: March 5, 2013, 2:56 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:
HTML http://www.colorpicker.com/
#Post#: 8682--------------------------------------------------
Re: Opacity/Transparency For Membergroup Background Post Color
Using JQuery Script?
DIR By: AnonyMister
Date: March 6, 2013, 2:42 pm
---------------------------------------------------------
The font is fine. ;)
Thank you though, that is not a bad idea just blending the
background in a bit more.
*****************************************************
Page 1 of 1