|
Post by Ross on Dec 31, 2005 18:55:48 GMT -5
This code will remodel the thread listing so that instead of using just the icon, you can use old/new post images in a column next to the threads: PreviewGlobal Footer<script type="text/javascript"> <!-- /* thread listing new/old images */ var newPost = 'http://www.proboards.com/v4images/on.gif'; var oldPost = 'http://www.proboards.com/v4images/off.gif';
if(location.href.match(/board=\w+/)) { var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.item(i).width.match(/4(3|8)%/) && td.item(i).className == 'windowbg') { var status = document.createElement('img'); if(td.item(i).firstChild.firstChild) { td.item(i).firstChild.firstChild.style.display = 'none'; status.src = newPost; } else status.src = oldPost; td.item(i-1).innerHTML = td.item(i-2).innerHTML; td.item(i-2).replaceChild(status, td.item(i-2).firstChild); } } } //--> </script>The only editing required is the two URLs at the top of the code for your On/Off Images.
|
|