vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Remove 'Announcement: ' text - 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
Remove 'Announcement: ' text (16th Mar 08 at 11:44am UTC)
This will remove the Announcement: text that appears before all announcements.

<script>
/*Remove Announcement text
Coded By Wrighty
No Ripping, Reposting or Claiming*/

var _d = get('td','tag');
function _x(){
    for(i=0; i<_d.length; i++){
        if(_d[i].className == 'window1' && _d[i].innerHTML.match(/\[A\]/) && _d[i+1].firstChild.firstChild.innerHTML.match(/Announcement: /)){
            _d[i+1].firstChild.firstChild.innerHTML = _d[i+1].firstChild.firstChild.innerHTML.replace(/Announcement: /, '')
        }
    }
}
if(location.href.match(/\/board\/(\w)/)){
    _x();
}
</script>


Global Footer
 Printable View

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