Author Topic: [Code] Membergroup Image  (Read 12983 times)

0 Members and 0 Guests are viewing this topic.

Offline Nick9

  • Jr. Member
  • **
  • Posts: 61
  • Karma: -38
    • View Profile
Re: [Code] Membergroup Image
« on: August 06, 2010, 05:52:18 pm »
ruckascape.createaforum.com

Code: [Select]
<script type="text/javascript" src="http://smcodes.smfforfree3.com/jquery.js"></script>
<script type="text/javascript">
function GroupImage(Group, Image){
//Created by Agent Moose
var PostGroup = document.getElementsByTagName("li");
for(x=0;x<PostGroup.length;x++){
if(PostGroup[x].className === "membergroup" && PostGroup[x].innerHTML.toLowerCase() === Group.toLowerCase()){
$(PostGroup[x]).parent().prev().find("a:last").prepend("<img src='" + Image + "' />");
};
if(PostGroup[x].className !== "membergroup" && PostGroup[x].className === "postgroup" && PostGroup[x].innerHTML.toLowerCase() === Group.toLowerCase()){
$(PostGroup[x]).parent().prev().find("a:last").prepend("<img src='" + Image + "' />");
};
};
};
GroupImage("Owner", "http://i766.photobucket.com/albums/xx305/Lion2126/OWNER1.gif");
GroupImage("In-Game Admin", "http://i734.photobucket.com/albums/ww344/Iomsscape/Mega%20Forum%20Images/admincrown-1.jpg");
GroupImage("Forum Admin", "http://i734.photobucket.com/albums/ww344/Iomsscape/Mega%20Forum%20Images/admincrown-1.jpg");
GroupImage("In-Game Mod", "http://i8.photobucket.com/albums/a38/StSquiggy/Runescape/ModCrown.png");
GroupImage("Forum Mod", "http://i756.photobucket.com/albums/xx204/shad0w_bucket/forumsstaffcrown.jpg");

</script>
CreateAForum Codes | RuckaScape | Open Testing Forum

I like the people who come on here JUST to defect my karma. ;)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
421 Views
Last post October 28, 2012, 01:35:55 pm
by terrel8125
9 Replies
2076 Views
Last post March 13, 2013, 10:51:19 pm
by aIURbliS
5 Replies
2532 Views
Last post July 19, 2020, 05:59:23 am
by Cobra C
4 Replies
32254 Views
Last post November 23, 2015, 03:26:07 am
by Agent Moose
0 Replies
244 Views
Last post October 18, 2015, 07:51:49 pm
by e a t p l z