|
Post by Bradley on Nov 1, 2005 18:18:03 GMT -5
This will style usernames. It's a bit more expanded version of colored names.
Global Footers
<script type="text/javascript"> <!-- var links = document.getElementsByTagName("a"); function styleName(name, color, bold, italic, uline) { for (i=0; i<links.length; i++){ if (links.href.indexOf('action=viewprofile&user='+name) != -1){ links.style.color = color; if (parseInt(bold) == 1){ links.style.fontWeight = "bolder"; } if (parseInt(italic) == 1){ links.style.fontStyle = "italic"; } if (parseInt(uline) == 1){ links.style.textDecoration = "underline"; } } } }
styleName("admin", "FF6600", 1, 0, 0); // --> </script>
Username of person Color to make name 1 for bold, 0 for not bold 1 for italic, 0 for not italic 1 for underline, 0 for not underlined
|
|