|
Post by Bradley on Feb 2, 2006 20:47:23 GMT -5
This will add a button to create a new thread when you are already view a thread. It will be place with the rest of the button directly below and above the posts.
Global Footers
<script type="text/javascript"> if(location.href.match(/board=(\w+)&action=/)) { var tempBtn; function newThreadButton() { tempBtn = document.createElement("a"); tempBtn .href = "/index.cgi?&board=" + RegExp.$1 + "&action=post"; tempBtn .appendChild(document.createElement("img")); tempBtn .firstChild.src = "IMAGE URL"; tempBtn .firstChild.border= "0"; tempBtn .firstChild.alt= "[New Thread]"; return tempBtn;} var imgs = document.getElementsByTagName("img"); for(i=0; i<imgs.length; i++) { if(imgs.item(i).alt == '[Reply]') { imgs.item(i).parentNode.parentNode.insertBefore(newThreadButton(), imgs.item(i).parentNode.nextSibling);}}} </script>
Insert the full URL of your New Thread image here
|
|