danz
New Member
Posts: 1
inherit
153534
0
Apr 13, 2010 4:52:41 GMT -8
danz
1
April 2010
danz
|
Post by danz on Apr 12, 2010 18:30:32 GMT -8
I have used this code:
<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("admin", "bi");// --> </script>
<script type="text/javascript" defer="defer"> // Font Fix / Font Scaling - CCWorld var fonts = document.getElementsByTagName("font"); for (i=0; i<fonts.length; i++){ if (fonts.item(i).size.match(/\d/)){ fonts.item(i).className = "fontFix" + fonts.item(i).size.replace("+", "Plus").replace("-", "Minus");}} </script>
And I can not figure out how to make another members name bold. I can make my name bold but I can not seem to figure out how to make others bold. Any help? (:
|
|
inherit
125435
0
Jun 1, 2013 7:46:21 GMT -8
Lugubrious
I love arrays...
790
May 2008
lugubrious
|
Post by Lugubrious on Apr 12, 2010 18:52:38 GMT -8
<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("admin", "bi"); stylename("usernamehere","b"); // --> </script>
<script type="text/javascript" defer="defer"> // Font Fix / Font Scaling - CCWorld var fonts = document.getElementsByTagName("font"); for (i=0; i<fonts.length; i++){ if (fonts.item(i).size.match(/\d/)){ fonts.item(i).className = "fontFix" + fonts.item(i).size.replace("+", "Plus").replace("-", "Minus");}} </script>
That should do the trick :]
|
|