Post by Peter on Oct 29, 2004 15:04:45 GMT
Code created by Uchiha Sasuke[/color]
alright, this is sort of like the first one, but to a suggestion, this will change the username color, but also the post count number color, according to the amount of posts you have, and color you choose
Goes in Board Footers
alright
the green is for the first start color and number, you set the color, and then for the number, that is for the number that you want there name color to change when they hit that number
this is the second color and number
this is the third color and number
this is the third color and number
now, remember, you can change the colors and numbers to what you want, except the numbers have to be three digits#nosmileys#nosmileys#nosmileys#nosmileys
alright, this is sort of like the first one, but to a suggestion, this will change the username color, but also the post count number color, according to the amount of posts you have, and color you choose
Goes in Board Footers
<script language=javascript>
<!--
//Switch Name and Post Count Color according to Post Count
//Coded by NCGI (Uchiha Sasuke) and Peter
function colorname(fcolor,fnumber,scolor,snumber,tcolor,tnumber,qcolor,qnumber) {
var TD = document.getElementsByTagName("TD")
for (t=0;t<TD.length;t++) {
if (TD[t].width=="20%" && TD[t].rowSpan=="2" && TD[t].innerHTML.match(/Posts: (\d+)/i) && (TD[t].className=="windowbg" || TD[t].className=="windowbg2")) {
var ThePosts = RegExp.$1
if (ThePosts<fnumber) {pcolor = ""}
else if (ThePosts<snumber) {TD[t].getElementsByTagName("A")[0].style.color=fcolor; pcolor=fcolor}
else if (ThePosts<tnumber) {TD[t].getElementsByTagName("A")[0].style.color=scolor; pcolor=scolor}
else if (ThePosts<qnumber) {TD[t].getElementsByTagName("A")[0].style.color=tcolor; pcolor=tcolor}
else {TD[t].getElementsByTagName("A")[0].style.color=qcolor; pcolor=qcolor}
TD[t].innerHTML = TD[t].innerHTML.replace(ThePosts,'<font color="'+pcolor+'">'+ThePosts+'</font>')
}}}
colorname('green','100','purple','150','blue','200','yellow','300');
// -->
</script>
<!--
//Switch Name and Post Count Color according to Post Count
//Coded by NCGI (Uchiha Sasuke) and Peter
function colorname(fcolor,fnumber,scolor,snumber,tcolor,tnumber,qcolor,qnumber) {
var TD = document.getElementsByTagName("TD")
for (t=0;t<TD.length;t++) {
if (TD[t].width=="20%" && TD[t].rowSpan=="2" && TD[t].innerHTML.match(/Posts: (\d+)/i) && (TD[t].className=="windowbg" || TD[t].className=="windowbg2")) {
var ThePosts = RegExp.$1
if (ThePosts<fnumber) {pcolor = ""}
else if (ThePosts<snumber) {TD[t].getElementsByTagName("A")[0].style.color=fcolor; pcolor=fcolor}
else if (ThePosts<tnumber) {TD[t].getElementsByTagName("A")[0].style.color=scolor; pcolor=scolor}
else if (ThePosts<qnumber) {TD[t].getElementsByTagName("A")[0].style.color=tcolor; pcolor=tcolor}
else {TD[t].getElementsByTagName("A")[0].style.color=qcolor; pcolor=qcolor}
TD[t].innerHTML = TD[t].innerHTML.replace(ThePosts,'<font color="'+pcolor+'">'+ThePosts+'</font>')
}}}
colorname('green','100','purple','150','blue','200','yellow','300');
// -->
</script>
alright
the green is for the first start color and number, you set the color, and then for the number, that is for the number that you want there name color to change when they hit that number
this is the second color and number
this is the third color and number
this is the third color and number
now, remember, you can change the colors and numbers to what you want, except the numbers have to be three digits#nosmileys#nosmileys#nosmileys#nosmileys