|
Post by takashi on Dec 20, 2005 15:39:11 GMT -5
<script type="text/javascript"> <!-- var anchors = document.getElementsByTagName("a"); function colorName(name,color){ for (cn=0;cn<anchors.length;cn++) if (anchors[cn].href.indexOf('action=viewprofile&user='+name) != -1) anchors[cn].style.color=color;} colorName('Username','color'); colorName('Username','color'); // --> </script>
The username, not display name, of the person The color to make the name
Repeat colorName('Username','color'); for more.
Does that code use HEX numbers or normal colors like "blue?"
|
|
|
Post by frufru~`'- on Dec 20, 2005 20:31:32 GMT -5
<script type="text/javascript"> <!-- var anchors = document.getElementsByTagName("a"); function colorName(name,color){ for (cn=0;cn<anchors.length;cn++) if (anchors[cn].href.indexOf('action=viewprofile&user='+name) != -1) anchors[cn].style.color=color;} colorName('Username','color'); colorName('Username','color'); // --> </script>
The username, not display name, of the person The color to make the name
Repeat colorName('Username','color'); for more. Does that code use HEX numbers or normal colors like "blue?" you can use either
|
|
|
Post by takashi on Dec 20, 2005 21:15:13 GMT -5
Ok. Thanx.
|
|
|
Post by Bradley on Dec 20, 2005 21:51:12 GMT -5
Just keep in mind that only the following color names are guaranteed to work, it's best to use hex for any others: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
|
|