vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Colour PM Link if new PMs

Colour PM Link if new PMs - Posted By Michael (wrighty) on 30th Dec 07 at 2:01am
Edit the CSS at the top to change the colour... Default is red! {Smile}

This will change the colour of the link: "x Private Messages" when you receive a new private message.

Global Header

Code:
 
  1. <style>
  2. a.newpm {
  3. color: #FF0000;
  4. }
  5. </style>
  6.  
  7. <script>
  8. /*Colour PM Link if new posts
  9. Created By Wrighty
  10. support.virtualforums.co.uk*/
  11.  
  12. var a = document.getElementById('user_table').getElementsByTagName('font')[1].getElementsByTagName('a')[0];
  13.  
  14. if(vf_new_pms!=0){
  15. a.className="newpm";
  16. }
  17.  
  18. </script>
 

Re: Colour PM Link if new PMs - Posted By [.tR] ookie1 (ookie1) on 13th Aug 08 at 7:57am
Is it possible to make this flash?

Re: Colour PM Link if new PMs - Posted By ashkir (ashkir) on 19th Feb 09 at 11:30pm
Woah. That is cool actually. xD.

Thanks Wrighty!