Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Sept 15, 2006 8:58:52 GMT
Global Footer. Just edit the relevant topic/event ID (the number after thread= in the URL) and the HEX color to use. Repeat as many lines as necessary, just be careful with the commas.
<script type="text/javascript"> <!-- /* color thread or event titles - ross */
var coloredThreads = [ ['Thread ID', 'Color'], ['Thread ID', 'Color'], ['Thread ID', 'Color'] // No comma on last line ]
var a = document.getElementsByTagName('a'); for(i=0; i<a.length; i++) { if(a.item(i).href.match(/ion=(display|calendarview|gotopost)&thread=(\d+)(&|$)/)) { var threadId = RegExp.$2; if(coloredThreads.toString().match(threadId)) { for(c=0; c<coloredThreads.length; c++) { if(threadId == coloredThreads[c][0]) { a.item(i).style.color = coloredThreads[c][1]; break; } } } } } //--> </script>
|
|