Author Topic: Code Help?  (Read 605 times)

0 Members and 0 Guests are viewing this topic.

Offline abugbeary

  • Newbie
  • *
  • Posts: 46
  • Karma: -1
    • View Profile
    • Clans of the Waterfalls
Code Help?
« on: March 31, 2013, 04:12:02 pm »
I just put in what I want for this code,
Code: [Select]
<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("Webmaster", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/webmaster.png");
 GroupImage("Wolf", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/wolf.png");
 GroupImage("Werewolf", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/werewolf.png");
 GroupImage("Vampire", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/vampire-1.png");
 GroupImage("Tribe of Falling Water", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/tribeoffallingwater.png");
 GroupImage("Tribe of Endless Darkness", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/tribeofendlessdarkness.png");
 GroupImage("Tribe of Drifting Leaves", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/tribeofdriftingleaves.png");
 GroupImage("Programmer", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/programmer.png");
 GroupImage("Notail", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/notail.png");
 GroupImage("Moderator", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/moderator.png");
 GroupImage("Lifeclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/lifeclan-1.png");
 GroupImage("Horse", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/horse.png");
 GroupImage("Global Moderator", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/globalmod.png");
 GroupImage("Fox", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/fox.png");
 GroupImage("Fireclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/fireclan.png");
 GroupImage("Fairy", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/fairy.png");
 GroupImage("Dragon", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/dragon.png");
 GroupImage("Dog", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/dog.png");
 GroupImage("Community Assistant", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/communityassistant.png");
 GroupImage("Artist", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/artist.png");
 GroupImage("Administrator", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/admin.png");
 GroupImage("Wildclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/wildclan.png");
 GroupImage("Waterclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/waterclan.png");
 GroupImage("Starclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/starclan.png");
 GroupImage("Snakeclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/snakeclan.png");
 GroupImage("Skyclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/skyclan.png");
 GroupImage("Skullclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/skullclan.png");
 GroupImage("Poisonclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/poisonclan.png");
 GroupImage("Morphclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/morphclan.png");
 GroupImage("Darkforest", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/darkforest.png");
 GroupImage("Darkclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/darkclan.png");
 GroupImage("Bloodclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/bloodclan.png");
 GroupImage("Birdclan", "http://i1246.photobucket.com/albums/gg616/Athena_Castagna/birdclan.png");

 </script>
and the pictures come out before the username, and after the online button.
I wanted to know if the code could be edited to where the picture come out centered below the group.

Thanks!
abugbeary
Join me in Clans of the Waterfalls! An amazing animal roleplaying site, mostly about cats though...

It is very high-tech, with active members! Join today!

*Click Here*

Share on Facebook Share on Twitter


 

Related Topics

  Subject / Started by Replies Last post
12 Replies
3406 Views
Last post December 02, 2014, 06:57:57 pm
by CyanProductions
1 Replies
823 Views
Last post March 14, 2012, 04:53:55 pm
by aIURbliS
4 Replies
210 Views
Last post May 27, 2017, 07:25:09 pm
by Egbune
2 Replies
139 Views
Last post May 27, 2017, 09:49:34 pm
by Egbune
2 Replies
189 Views
Last post February 02, 2020, 03:34:38 pm
by mickjav