vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Change Color of Flagged PMs - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Change Color of Flagged PMs (4th Apr 08 at 11:28pm UTC)
This code will allow you to change the color of any flagged PMs that you may have.

<script>
/*Flagged Message Color
By Wrighty*/

var col = 'FF0000';

if(/action\/pm/.test(location.href)){
    var d = get('td','tag');
    for(i=0;i<d.length;i++){
        if(d[i].className.match(/window(1|2)/) && d[i].cells[0].width == '2%' && d[i].firstChild.firstChild && d[i].firstChild.firstChild.alt == '!'){
            d[i+1].firstChild.firstChild.style.color = '#' + col;
        }
    }
}
</script>


Edit the part in red! {Smile}

Main Footer
 Printable View

All times are GMT+0 :: The current time is 1:07am
Page generated in 0.077 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums