Post Background Toggle
2 posters
Page 1 of 1
Post Background Toggle
So I have been using this code to change the background of the posts my mods make. Though they want it to be possible to toggle the function on or off. Would it be possible to work with the Java and make it so if they have something on it will change the background, but if not they can just leave it normal?
CODE:
CODE:
- Spoiler:
- CSS
- Code:
/*Color posts*/
.background_post{
background-image: url('http://i1096.photobucket.com/albums/g330/viper8421/CM_zps8dfb9075.png');
background-repeat: repeat-y;
}
JAVASCRIPT- Code:
$(document).ready(function(){
$('.post:has(".backgpost")').addClass('background_post');
});
Ranks- Code:
<div class="backgpost">Moderator</div>
Last edited by viper8421 on March 19th 2013, 3:15 am; edited 1 time in total
Re: Post Background Toggle
You can create a rank without the tags. I don't think there isn't anyother way. Sorry.
Sir Chivas™- Helper
- Posts : 6965
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Post Background Toggle
Hmm i was thinking maybe if an "if" statement is in the JS, where if you had something selected in the Profile fields, or on the post bar kinda like the ", , and ", to get it to show.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum