Advertise Here

Author Topic: Is there any possibility  (Read 2633 times)

0 Members and 1 Guest are viewing this topic.

Offline Mythe

  • SMF For Free Member
  • *
  • Posts: 53
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Is there any possibility
« on: August 10, 2011, 08:28:31 am »
With this script like <script>
function Color_Username(ethan,troy){
//Created by Agent_Moose (lulz)
var Vikhyat = document.links;
for(simply_sibyl=0;simply_sibyl<Vikhyat.length;simply_sibyl++){
if(Vikhyat[simply_sibyl].href.match("profile;u=" + ethan + "$")){
Vikhyat[simply_sibyl].style.color = troy;
};};};
Color_Username("ALL Members","Green");
</script>

That evrey members name is green?

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: Is there any possibility
« Reply #1 on: August 10, 2011, 11:26:26 am »
The easiest way I see of doing this is using this code, and just putting in all the membergroups. Which shouldn't take long.

Code: [Select]
<script>
function color_group_name() {
//Created by Agent Moose (smcodes.smfforfree3.com)
var group = new Array()
group[group.length] = ["Newbie","orange"]
group[group.length] = ["MEMBER GROUP","COLOR"]

for(f=0;f<group.length;f++){
$("div.smalltext").each(function() {
if(this.innerHTML.match(group[f][0])){
this.innerHTML = this.innerHTML.replace(group[f][0],"<font color='" + group[f][1] + "'>" + group[f][0] + "</font>");
};});};}
color_group_name();
</script>

And just put in all the membergroups rather than each individual member.
<--- Donate to SMF For Free! :D

Offline Mythe

  • SMF For Free Member
  • *
  • Posts: 53
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: Is there any possibility
« Reply #2 on: August 10, 2011, 01:29:00 pm »
Seldom, you don't seem to understand I mean all the userames Green not the Membergroup names

Offline Mythe

  • SMF For Free Member
  • *
  • Posts: 53
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: Is there any possibility
« Reply #3 on: August 11, 2011, 07:35:04 am »
someone help?

Offline Mythe

  • SMF For Free Member
  • *
  • Posts: 53
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: Is there any possibility
« Reply #4 on: August 12, 2011, 09:56:08 am »
fucking help

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1657 Views
Last post October 08, 2006, 05:04:38 am
by Battousai