inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 5, 2005 3:52:09 GMT -8
<script type="text/javascript"> <!--
// Created by PopThosePringles
// On image var onImg = "http://images.proboards.com/new/on.png";
var re = /board=(\w+)/i var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){ if(iCell.item(c).className == "windowbg" && iCell.item(c).width == "8%"){ if(iCell.item(c).firstChild.src.match(new RegExp("\/" + onImg, "i"))){ iCell.item(c).onclick = function(){ bID = this.parentNode.cells.item(1).firstChild.firstChild.href.match(re)[1]; location.href = "index.cgi?board=" + bID + "&action=markasread"; } iCell.item(c).onmouseover = function(){ this.style.cursor = "pointer"; this.title = "Mark this board as read"; } iCell.item(c).onmouseout = function(){ this.style.cursor = ""; } } } }
//--> </script>
Add to main footer.
If your on image is custom, change it in the top of the script. When people click on the on image, all threads will be marked as read for that board.
|
|