Post by FishData on Apr 18, 2009 11:15:44 GMT -5
Ok for some reason this global footer for color won't stop making usernames green....
<script type="text/javascript">
<!--
//Style Names (bold and italic)
//By Code Dragon
//Global Footer
//No need to edit
document.write('<style type="text/css"><!--.b{font-weight:bold;}.i{font-style:italic;}.bi{font-weight:bold;font-style:italic;} --></style>');
function stylename(username,istyle){
var li = document.getElementsByTagName('a');
for(nks=0;nks<li.length;nks++){
if(li[nks].href.indexOf("?action=viewprofile&user="+username) != -1){
li[nks].className=istyle;
}
}
}
/* Add the username and the first letter of
the style you wish to use. To use two
styles, then use the first letter of both. */
stylename("neko","i");
// -->
</script>
<script type="text/javascript">
<!--
/*
Two Colored Display Names by Code Dragon and Boccy109
Code from chaobreederxl2.proboards80.com
Please do not repost, edit, or claim as your own
*/
function color(username,clr1,clr2){
var a = document.getElementsByTagName('a');
for(href=0;href<a.length;href++){
if(a[href].href.indexOf("action=viewprofile&user="+username) != -1){
var b = a[href].innerHTML;
if(arguments[2]!=""){
var c = parseInt(0);
var d = true;
var e = "";
while(c<b.length){
if(d){
e+="<font color='#"+clr1+"'>"+b.charAt(c)+"</font>";
d=false;
}
else{
e+="<font color='#"+clr2+"'>"+b.charAt(c)+"</font>";
d=true;
}
c++;
}
a[href].innerHTML=e;
}
else{
a[href].style.color=clr1;
}
}
}
}
/////////////////////////////////////////////////
/*
Syntax:
color("USERNAME","color1","color2");
Leave the second color blank for just one color, like so:
color("USERNAME","color1","");
*/
////////////////////////////////////////////////
color("neko","FF33FF");
// -->
</script>
What's wrong with it?
<script type="text/javascript">
<!--
//Style Names (bold and italic)
//By Code Dragon
//Global Footer
//No need to edit
document.write('<style type="text/css"><!--.b{font-weight:bold;}.i{font-style:italic;}.bi{font-weight:bold;font-style:italic;} --></style>');
function stylename(username,istyle){
var li = document.getElementsByTagName('a');
for(nks=0;nks<li.length;nks++){
if(li[nks].href.indexOf("?action=viewprofile&user="+username) != -1){
li[nks].className=istyle;
}
}
}
/* Add the username and the first letter of
the style you wish to use. To use two
styles, then use the first letter of both. */
stylename("neko","i");
// -->
</script>
<script type="text/javascript">
<!--
/*
Two Colored Display Names by Code Dragon and Boccy109
Code from chaobreederxl2.proboards80.com
Please do not repost, edit, or claim as your own
*/
function color(username,clr1,clr2){
var a = document.getElementsByTagName('a');
for(href=0;href<a.length;href++){
if(a[href].href.indexOf("action=viewprofile&user="+username) != -1){
var b = a[href].innerHTML;
if(arguments[2]!=""){
var c = parseInt(0);
var d = true;
var e = "";
while(c<b.length){
if(d){
e+="<font color='#"+clr1+"'>"+b.charAt(c)+"</font>";
d=false;
}
else{
e+="<font color='#"+clr2+"'>"+b.charAt(c)+"</font>";
d=true;
}
c++;
}
a[href].innerHTML=e;
}
else{
a[href].style.color=clr1;
}
}
}
}
/////////////////////////////////////////////////
/*
Syntax:
color("USERNAME","color1","color2");
Leave the second color blank for just one color, like so:
color("USERNAME","color1","");
*/
////////////////////////////////////////////////
color("neko","FF33FF");
// -->
</script>
What's wrong with it?