Post by Peter on Oct 29, 2004 16:00:43 GMT
Code created by Craig[/color]
<script langauge="JavaScript1.2">
<!--
/*
Copyright © 2003 Craig Suffolk, ProBoards.com
All Rights Reserved
Permission is hereby granted to use this code
solely on message boards hosted by ProBoards.com.
Any other site found to be using this code shall
be in violation of this copyright notice.
*/
var moveOverColor = 'BECDEA';
// this is the image of the arrow. If you don't want one, leave this blank
var arrowimage = 'url of arrow image';
addAnc = document.getElementsByTagName('b');
tables = document.getElementsByTagName('TABLE');
if (navigator.appName==='Microsoft Internet Explorer') {
for(b=0;b<addAnc.length;b++) {
if (addAnc[b].innerHTML.match(/Reply #(.+?) on:/)){
anchor=RegExp.$1
addAnc[b].innerHTML=addAnc[b].innerHTML+'<a name="'+anchor+'"></a>';
}
}
for(t=0;t<tables.length;t++) {
for(r=0;r<tables[t].rows.length; r++) {
for (c=0;c<tables[t].rows(r).cells.length; c++) {
if(tables[t].rows(r).cells(c).className=="windowbg2" && tables[t].rows(r).cells(c).width=="20%" && location.href.indexOf('action=')== -1) {
if(arrowimage != '') {
tables[t].rows(r).cells(c).innerHTML='<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td>'+tables[t].rows(r).cells(c).innerHTML+'</td><td><img src="'+arrowimage+'" align="right"></td></tr></table>';
}
tables[t].rows(r).cells(c).onmouseover = function(){this.style.backgroundColor=moveOverColor;this.style.cursor='hand';};
tables[t].rows(r).cells(c).onmouseout = function(){this.style.backgroundColor=this.bgColor;};
tables[t].rows(r).cells(c).onclick = function(){
this.previousSibling.previousSibling.innerHTML.match(/>(.+?)</);
var replyNum=RegExp.$1;
if (replyNum == 0) {
var startNum=0;
} else {
for (n=0;n<replyNum;){
if ((replyNum>=n) && (replyNum<(n+15))){
var startNum=n;
}
n=n+15;
}
}
this.previousSibling.previousSibling.previousSibling.previousSibling.innerHTML.match(/href="(.+?)">/);
var postURL=RegExp.$1;
location=postURL+'&start='+startNum+'#'+replyNum;
};
}
}
}
}
}
// -->
</script>