|
Post by Tyrasibion on Dec 28, 2004 7:54:13 GMT -5
I use this code to make the colors of the names of admins red and gmods blue, but what do I have to add to it to make normal members gray, or something?
<style> .adminuser:link,.adminuser:visited,.adminuser:hover { color: FF0000; } .gmoduser:link,.gmoduser:visited,.gmoduser:hover { color: 6666FF; } </style>
|
|
|
Post by Bradley on Dec 28, 2004 11:23:21 GMT -5
I use this code to make the colors of the names of admins red and gmods blue, but what do I have to add to it to make normal members gray, or something? <style> .adminuser:link,.adminuser:visited,.adminuser:hover { color: FF0000; } .gmoduser:link,.gmoduser:visited,.gmoduser:hover { color: 6666FF; } </style> I don't know of any easy way to do it...
|
|
|
Post by Tommy Huynh on Jan 1, 2005 5:10:30 GMT -5
I don't know of any easy way to do it... I do! Use this in the footers: Modify the red. (And ONLY the red) <script language=javascript> <!-- function colorName(name,color) { for (cn=0;cn<document.links.length;cn++) if (document.links[cn].href.indexOf('action=viewprofile&username='+name) != -1) document.links[cn].style.color=color; }
colorName('','HEX COLOUR'); // --> </script>
|
|
|
Post by Bradley on Jan 1, 2005 12:23:58 GMT -5
That ^ made me think of an easy way:
<script type="text/javascript" language="javascript"> <!-- var color = 'ffffff'; var links = document.getElementsByTagName("a"); for (i=0;i<links.length;i++){ if (links.href.indexOf('action=viewprofile&username=') != -1) links.style.color=color;} // --> </script>
Hex color code
|
|
|
Post by Phroxen on Mar 6, 2005 10:48:11 GMT -5
I tried these, and neither of them work. The top one worked, but it changed EVERY name to yellow... not JUST the ordinary members...
|
|
|
Post by Bradley on Mar 6, 2005 15:29:25 GMT -5
I tried these, and neither of them work. The top one worked, but it changed EVERY name to yellow... not JUST the ordinary members... URL?
|
|