Post by Ћ€ Dog Monst€Я on Feb 13, 2007 10:24:29 GMT -8
This Code: Adds a clickable arrow to the end of the last post cell. This arrow brings the clicker to the thread in which the last post was made.
Editing: Change the red part to the URL of your arrow image.
Changes to PB Code: With this code, the last post cell when viewing the threads list inside a board is no longer clickable. To remove this disablement, remove the orange part from the code when you place it in your footers.
Editing: Change the red part to the URL of your arrow image.
Changes to PB Code: With this code, the last post cell when viewing the threads list inside a board is no longer clickable. To remove this disablement, remove the orange part from the code when you place it in your footers.
<script type="text/javascript">
/*
Add Arrow To End of Last Post Cell
Coded by The Dog Monster
Do not edit or repost without permission
Place in Footers (global to affect all forum, main to affect main page only, board to affect thread list of certain board)
*/
theSrcIs='ARROW URL'
tdse=document.getElementsByTagName('td')
for(a=0;a<tdse.length;a++){
if(tdse.className=="windowbg2" && tdse.width.match(/2(0|4)%/i) && tdse[a-1].className=="windowbg" && tdse[a-1].width.match(/(1|4)%/i) && tdse[a-1].align=="center"){
tdseImg=document.createElement('img')
tdseImg.src=theSrcIs
tdseImg.style.cursor="pointer"
if(tdse.style.cursor=="pointer"){
tdseImg.onclick=function (){
location.href='/index.'+this.parentNode.parentNode.getElementsByTagName('a')[0].href.split('/index.')[1]
}
tdseImg.onmouseover=function (){
window.status=this.parentNode.parentNode.getElementsByTagName('a')[0].innerHTML
}
}
if(tdse.vAlign=="top"){
tdseImg.onclick=function (){
location.href=(this.parentNode.getElementsByTagName('a')[1])?'/index.'+this.parentNode.getElementsByTagName('a')[1].href.split('/index.')[1]:'/index.'+this.parentNode.getElementsByTagName('a')[0].href.split('/index.')[1]
}
}
tdseImg.onmouseover=function (){
window.status=(this.parentNode.getElementsByTagName('a')[1])?this.parentNode.getElementsByTagName('a')[1].innerHTML:this.parentNode.getElementsByTagName('a')[0].innerHTML
}
tdseImg.onmouseout=function (){
window.status=''
}
tdse.appendChild(tdseImg)
if(tdse.onclick){
tdse.onclick=tdse.onmouseover=tdse.onmouseout=function (){}
tdse.style.cursor=""
}
}
}
</script>