inherit
40157
tyrantlytamale 627939549 tjhtmlmaniac
0
Sept 3, 2023 15:17:02 GMT -8
Tylr
The stale taste of recycled air.
2,964
April 2005
tyrantlytamale
|
Post by Tylr on Apr 4, 2012 5:33:08 GMT -8
Add as many usernames as you like, in the format styleName('admin','smallcaps'); where red is the username and green is the style. Supports bold, italic, big, CAPS, and SMALL CAPS.
Global Footer Open Source
<script type="text/javascript"> <!-- //Custom styles for display names
function styleName(username,styletype){ var ah=document.getElementsByTagName('a'); for(i=0;i<ah.length;i++){ if(ah[i].href.match('action=viewprofile&user='+username)){ switch(styletype){ case 'caps': ah[i].innerHTML=ah[i].innerHTML.toUpperCase();break; case 'bold': ah[i].style.fontWeight='bold';break; case 'italic': ah[i].style.fontStyle='italic';break; case 'smallcaps': ah[i].style.fontVariant='small-caps';break; case 'big': ah[i].style.fontSize='14';break; }}}}
styleName('admin','smallcaps'); styleName('username1','bold'); styleName('user2','italic');
--> </script>
If you'd like to use these styles for ALL display names:
<script type="text/javascript"> <!-- //Custom styles for ALL display names
var gocaps='no'; var gobold='no'; var goitalic='no'; var gosmallcaps='no'; var gobig='no';
var ah=document.getElementsByTagName('a'); for(i=0;i<ah.length;i++){ if(ah[i].href.match('action=viewprofile&user=')){ if(gocaps=='yes') ah[i].innerHTML=ah[i].innerHTML.toUpperCase(); if(gobold=='yes') ah[i].style.fontWeight='bold'; if(goitalic=='yes') ah[i].style.fontStyle='italic'; if(gosmallcaps=='yes') ah[i].style.fontVariant='small-caps'; if(gobig=='yes') ah[i].style.fontSize='14'; } } --> </script>
|
|