The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Gradient background problem

View previous topic View next topic Go down

Solved Gradient background problem

Post by RAtSoaDM on May 1st 2012, 11:21 am

This is the code for changing the color
Code:
$(function() {
$('div.post:has(".specialpost")').css('background-color','#000');
});
and it worked...but I'm trying figure out how to add an image, isn't it supposed to look like this
Code:
$(function() {
$('div.post:has(".specialpost")').css('background-image','http://www.pptbackground.net/plog-content/images/powerpoint/linear-powerpoint-backgrounds/red_gradient_ppt_backgrounds.jpg');
});

Hello

RAtSoaDM
Forumember

Male Posts : 525
Reputation : 0
Language : English
Location : SUPERUNKNOWN

http://bootlegmatrix.netgoo.org/forum.htm

Back to top Go down

Solved Re: Gradient background problem

Post by Guest on May 2nd 2012, 4:11 pm

Hi!

Try this:
Code:
$(function() {
$('div.post:has(".specialpost")').css('background','http://imgur.com/pjjVM repeat-x');
});
I replaced the link to image, just because that's too long.
But, I don't see any errors in that code. Wink

Guest
Guest


Back to top Go down

Solved Re: Gradient background problem

Post by RAtSoaDM on May 3rd 2012, 2:47 am

HMMM neither one em worked at all.. any ideas why? Thanks for the reply.

RAtSoaDM
Forumember

Male Posts : 525
Reputation : 0
Language : English
Location : SUPERUNKNOWN

http://bootlegmatrix.netgoo.org/forum.htm

Back to top Go down

Solved Re: Gradient background problem

Post by genji watanabe on May 3rd 2012, 3:07 am

try this

Code:
$(function() {
$('div.post:has(".specialpost")').css('background','url(grandit picrure link) repeat-x');
});

genji watanabe
Forumember

Male Posts : 231
Reputation : 17
Language : Html, Css, some Js and no Gfx.
Location : Malaysia

http://project-d.forumotion.com/

Back to top Go down

Solved Re: Gradient background problem

Post by RAtSoaDM on May 3rd 2012, 6:55 am

DING DING DING we have a WINNER! : cheers verygood:

RAtSoaDM
Forumember

Male Posts : 525
Reputation : 0
Language : English
Location : SUPERUNKNOWN

http://bootlegmatrix.netgoo.org/forum.htm

Back to top Go down

Solved Re: Gradient background problem

Post by RAtSoaDM on May 3rd 2012, 6:59 am

Is there anyway to have 2 different gradient special post?

RAtSoaDM
Forumember

Male Posts : 525
Reputation : 0
Language : English
Location : SUPERUNKNOWN

http://bootlegmatrix.netgoo.org/forum.htm

Back to top Go down

Solved Re: Gradient background problem

Post by SLGray on May 3rd 2012, 9:24 am

Please don't double/triple post. This is your second reminder about this. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!

Just change specialpost for each group you want to have different post background.

For example:
Administrators - adminpost
Moderators - modpost

Make sure that the specialpost matches in the rank titles and in the JavaScript code.




When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35670
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Gradient background problem

Post by RAtSoaDM on May 3rd 2012, 11:56 am

Ahh I figured it was something like that. mwii

MY BAD about double posting.. WOn't happen again.

Thanks for the help rock

RAtSoaDM
Forumember

Male Posts : 525
Reputation : 0
Language : English
Location : SUPERUNKNOWN

http://bootlegmatrix.netgoo.org/forum.htm

Back to top Go down

Solved Re: Gradient background problem

Post by Nera. on May 3rd 2012, 11:57 am

Is it solved than?

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Gradient background problem

Post by RAtSoaDM on May 3rd 2012, 12:16 pm

Yep

RAtSoaDM
Forumember

Male Posts : 525
Reputation : 0
Language : English
Location : SUPERUNKNOWN

http://bootlegmatrix.netgoo.org/forum.htm

Back to top Go down

Solved Re: Gradient background problem

Post by Nera. on May 3rd 2012, 12:17 pm

Topic Solved & Locked

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum