Author Topic: [REQ]colour membergroup posts  (Read 2366 times)

0 Members and 0 Guests are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: [REQ]colour membergroup posts
« on: July 08, 2012, 04:54:56 pm »
Was just a few tweaks >.>
Headers:
Code: [Select]
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
Footers:
Code: [Select]
<script>var postColor = new Array()
postColor[postColor.length] = ["Administrator","blue"]

for(f=0;f<postColor.length;f++){$("li.membergroup:contains(" + postColor[f][0] + ")").each(function(){$(".post").addClass(postColor[f][0]+"Class");});document.write("<st"+"yle>." + postColor[f][0] + "Class{background-color: " + postColor[f][1] +";}</st"+"yle>")};</script>
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
158 Views
Last post September 25, 2012, 06:32:11 pm
by Andrew
9 Replies
2159 Views
Last post March 13, 2013, 10:51:19 pm
by aIURbliS
2 Replies
893 Views
Last post November 26, 2012, 04:48:38 am
by aIURbliS
3 Replies
545 Views
Last post December 09, 2017, 02:10:24 am
by Shin-Jones
1 Replies
355 Views
Last post November 15, 2018, 10:16:20 pm
by CreateAForum