|
Post by Smangii on Nov 20, 2010 2:05:23 GMT
Crossbrowser!
Change the "Announcement:" text to whatever you like, and change the color of the thread link.
Place in Global Footer.
Edit these parts:
var newtext = "Important:"; // Text to replace Announcements, leave blank to remove var newcolor = "#FF0000"; // Color for the announcements
<script type="text/javascript"> // Replace Announcement Text and Color - By Smangii
var newtext = "Important:"; // Text to replace Announcements, leave blank to remove var newcolor = "#FF0000"; // Color for the announcements
if(location.href.match(/\?board=\w+&?((mod\w+|page)=\d+)?$/)){ var TD = document.getElementsByTagName("TD"); for(i=0;i<TD.length;i++){ if(TD[i].className=='windowbg' && TD[i].innerHTML.match(/Announcement:/)){ TD[i].innerHTML = TD[i].innerHTML.replace('Announcement:',''+newtext+''); var name = TD[i].getElementsByTagName('a')[0]; name.style.color = ''+newcolor+''; }}} </script>
|
|