dja
Former Coding Moderator
Posts: 25
|
Post by dja on Apr 25, 2006 15:24:45 GMT -5
PreveiwDJA's PM Bar V1.5Global Headers | Please PM me for any additional info needed about this code(Tested,Requests,Bugs, ect) Code:<script language="JavaScript" type="text/JavaScript"> //DJAs PM Bar,V1 //www.dja3.2ya.com var td = document.getElementsByTagName('TD'); if(td[2].innerHTML.match(/Hey, (.+?), you/i)){ var User = RegExp.$1 } if(td[2].innerHTML.match(/action=pm">(\d+)\s/i)) { var Total = RegExp.$1 } if(td[2].innerHTML.match(/, (\d+)\ (is|are) new./i)){ var New = RegExp.$1 } if(td[2].innerHTML.match(/guest/i)){ td[5].innerHTML+='<br />Hey, guest. Please <a href="/index.cgi?action=login">Log In</a> or <a href="/index.cgi?action=register">Register</a> to use this feature.'; } if(td[2].innerHTML.match(/Hey,/i)){ td[5].innerHTML+='<br />Hey '+User+'. <a href="/index.cgi?action=pm">,You have '+Total+' Pms in your inbox</a>, '+New+' of them are new.'; } document.getElementsByTagName('td')[2].style.display='none'; document.getElementsByTagName('font')[1].style.display='none'; </script> Features for V2: - Hide <<Home>>
- Add Class
- Above/Below welcome table
- Show/Hide more PM information
|
|