inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Sept 16, 2006 13:14:10 GMT -8
Global Footer. Just edit the 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>
|
|