|
[code]<script>
function colorUser(id,hex,bld,ital){
var iTR = document.getElementsByTagName('TR')
for(i=0;i<iTR.length;i++){
if(iTR.cells.length==2 && iTR.cells[0].getElementsByTagName('SPAN').length > 0){
var iSpan = iTR.cells[0].getElementsByTagName('SPAN')[0]
if(iSpan.className == 'normalname' && iSpan.getElementsByTagName('A')[0].href.match("showuser=" + id + "$") != null){
iTR[i+1].cells[1].innerHTML="<span style='color:"+hex+";font-weight:"+bld+";font-style:"+ital+"'>" + iTR[i+1].cells[1].innerHTML+"</span>"
} } }}
if(location.href.match(/showtopic=\d/i) != null){
colorUser( "1","#c3c3c3","bold","italics");
colorUser( "2","#ff0000");
}
</script>
[/code]
|
|
|
And this one :)
<script>
function colorUserfont(id,hex,bld,ital){
var iTR = document.getElementsByTagName('TR')
for(i=0;i<iTR.length;i++){
if(iTR.cells.length==2 && iTR.cells[0].getElementsByTagName('SPAN').length > 0){
var iSpan = iTR.cells[0].getElementsByTagName('SPAN')[0]
if(iSpan.className == 'normalname' && iSpan.getElementsByTagName('A')[0].href.match("showuser=" + id + "$") != null){
iTR[i+1].cells[1].innerHTML="<span style='color:"+hex+";font-weight:"+bld+";font-style:"+ital+"'>" + iTR[i+1].cells[1].innerHTML+"</span>"
} } }}
if(location.href.match(/showtopic=id/i) != null){
colorUserfont( "1","#FF0000","bold","italics");
}
</script>
|
|
|
|
|
|
|
|