inherit
66842
0
Nov 28, 2016 9:23:54 GMT -8
Scorpian
1,234
December 2005
tatersalad
|
Post by Scorpian on Aug 12, 2006 19:12:13 GMT -8
<script type='text/javascript'> /* Move Mark-As-Read Bar to Info Center by Scorpian http://roddyinnov.proboards75.com */
var riTable = document.getElementsByTagName('table'); var riTd = document.getElementsByTagName('td'); if(location.href.match(/action=home$/i) || !location.href.match(/(action|board)=/i) && pb_username != 'Guest'){ for(a=0; a<riTd.length; a++){ if(riTd[a].colSpan == 5 && riTd[a].className == 'catbg' && riTd[a].align == 'right' && riTd[a].innerHTML.match(/Mark\sAll/i)){ var markAsRead = riTd[a].innerHTML; riTd[a].parentNode.style.display = 'none'; } } for(b=0; b<riTable.length; b++){ if(riTable[b].cellSpacing == 1 && riTable[b].cellPadding == 4 && riTable[b].rows[0].cells[0].innerHTML.match(/Info\sCenter/i)){ var marCell = riTable[b].insertRow(-1).insertCell(0); marCell.colSpan = 2 marCell.className = 'titlebg'; marCell.height = '18'; marCell.align = 'right'; marCell.innerHTML = markAsRead; } } } </script>
Main Footers. This code will take the Mark-As-Read bar, and move it to the bottom of the info center. As opposed to the bottom of the boards. Cross-browser, no editing required.
|
|