Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Background code and Active user color legend!
Topic Started: Jun 2 2008, 07:35 PM (500 Views)
rene_steegs
Hardcore Warrior Leader
 *  
I tried to find a good active user color legend for the bottom of my forum but I didn't find any good 1.
can some1 help me?

And I am looking for a code for background images to stay when you scroll down the forum.
SO that the picture will stay and the forum scrolls down!
Offline Profile Quote Post Goto Top
 
rene_steegs
Hardcore Warrior Leader
 *  
Nvm mind I found it :D

Quote:
 
<script type='text/javascript'>
/*Easy to install member legend by Duveaux of http://www.phantom-designs.net*/


var groupColours=[];
groupColours[0]=["<B>Administrators</b>","red"]
groupColours[1]=["<b>Senior Officers</b>","orange"]
groupColours[2]=["<b>Fleet Officers</b>","yellow"]
groupColours[3]=["Pirates","Green"]
groupColours[4]=["Cabin Persons","blue"]

td = document.getElementsByTagName("div");
for (x=0; x<td.length; x++){
if(td[x].className=="thin" && td[x].innerHTML.match("showuser")){
td[x].innerHTML="<center><B>Online Member Color Legend</b><BR><div id='theLeg'>Loading Member Legend..</div></center>"+td[x].innerHTML
for (i=0;i<groupColours.length;i++){
ii=i+1
if (ii==groupColours.length){
theLeg.innerHTML=theLeg.innerHTML.split("Loading Member Legend..").join("")}
theOnlineNum=0
if(td[x].innerHTML.match(groupColours[1])){theOnlineNum++
theOnlineNum=td[x].innerHTML.split(groupColours[1])
theOnlineNum=theOnlineNum.length-1
theLeg.innerHTML+="[<font color="+groupColours[1]+">"+groupColours[0]+"</font> ("+theOnlineNum+")]" }
if(!td[x].innerHTML.match(groupColours[1])){
theLeg.innerHTML+="[<font color="+groupColours[1]+">"+groupColours[0]+"</font>] "}}
}}
</script>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards - Skinning & Code Support · Next Topic »
Add Reply