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.

[QUERY][HELP] How to put an image in the post background?

View previous topic View next topic Go down

[QUERY][HELP] How to put an image in the post background?

Post by Poser on October 21st 2011, 5:43 am

I already know how to put a post background color on my forums.
Now I am asking again on how to put an image on it?
Where do i insert it in this code:

Code:
$(document).ready(function() {
$('.post:has(".admin1")').css('background-color', 'black');
$('.post:has(".mod2")').css('background-color', 'turquoise');
});

Or do I need another code?
Can you show it to me?

Poser
Helper
Helper

Male Posts : 391
Reputation : 40
Language : English and Filipino
Location : Whale Island

http://www.bowtieblogs.forumotion.com

Back to top Go down

Re: [QUERY][HELP] How to put an image in the post background?

Post by *Mare-SBK™* on October 21st 2011, 11:09 am

Code:
$(document).ready(function() {
$('.post:has(".admin1")').css('background-image', 'url(YOUR IMAGE URL)');
$('.post:has(".mod2")').css('background-image', 'url(YOUR IMAGE2 URL)');
});
Try this. Put script in JS managament.

*Mare-SBK™*
Forumember

Male Posts : 181
Reputation : 16
Language : Serbian, English, German

http://design4u.forumsr.com/

Back to top Go down

Re: [QUERY][HELP] How to put an image in the post background?

Post by Poser on October 26th 2011, 3:40 am

Oh I see.
I'll try this one.
Wait...

Poser
Helper
Helper

Male Posts : 391
Reputation : 40
Language : English and Filipino
Location : Whale Island

http://www.bowtieblogs.forumotion.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