Post by hpmad on Mar 19, 2006 17:02:38 GMT -8
Description:
Makes a thread jump similar to the forum jump either above or below (or both) the threads listing. Edit the red parts, if wanted.
Global Footer:
<script type="text/javascript">
<!--
/* Thread Starter Under Thread Name by hpmad
Do not repost or claim without permission from creator
For more codes like this one go to: talkpark.proboards.com */
var neww = '(NEW) '; // if there is a new post, this will be next to the thread name on the jump
var position = 3; // 1 = above threads; 2 = below threads; 3 = both;
var table = document.getElementsByTagName('table');
if(location.href.match(/board=(.+?)(&field=\w+|&order=(asc|desc)|&page=\d+|&moderationmode=\d)*(#\w+)?$/i)){
var tj = document.createElement('select');
tj.setAttribute('onchange', 'if(this.options[this.selectedIndex].value) window.location = this.options[this.selectedIndex].value;');
tj.options[0] = new Option('Thread Jump','');
tj.options[1] = new Option('--------------------','');
for(t=0;t<table.length;t++){
var moogocow = table[t].rows[0].cells[0];
if(table[t].cellPadding=='4' && table[t].cellSpacing=='1' && (moogocow.colSpan=='8' || moogocow.colSpan=='7')){
var td = table[t].getElementsByTagName('td');
for(i=0;i<td.length;i++){
if(td.className=='windowbg' && (td.width=='43%' || td.width=='48%')){
var aa = td.getElementsByTagName('a');
var nn = aa[0].getElementsByTagName('img')[0] ? 1:0;
var tt = nn ? neww+aa[1].innerHTML:aa[0].innerHTML;
tt = tt.length > 30 ? tt.substring(0,30)+'...':tt;
var tl = aa[nn].href;
tj.options[tj.options.length] = new Option(tt,tl);
}
}
var iCell = document.createElement('td');
iCell.colSpan = moogocow.colSpan;
iCell.className = 'windowbg';
iCell.appendChild(tj);
var iCell2 = iCell.cloneNode(true);
switch(position){
case 1: var la = table[t].insertRow(1); la.appendChild(iCell); break;
case 2: var la = table[t].insertRow(table[t].rows.length-1); la.appendChild(iCell); break;
case 3: var la = table[t].insertRow(table[t].rows.length-1); la.appendChild(iCell);
var la2 = table[t].insertRow(1); la2.appendChild(iCell2);
break;
}
}
}
}
//-->
</script>
Makes a thread jump similar to the forum jump either above or below (or both) the threads listing. Edit the red parts, if wanted.
Global Footer:
<script type="text/javascript">
<!--
/* Thread Starter Under Thread Name by hpmad
Do not repost or claim without permission from creator
For more codes like this one go to: talkpark.proboards.com */
var neww = '(NEW) '; // if there is a new post, this will be next to the thread name on the jump
var position = 3; // 1 = above threads; 2 = below threads; 3 = both;
var table = document.getElementsByTagName('table');
if(location.href.match(/board=(.+?)(&field=\w+|&order=(asc|desc)|&page=\d+|&moderationmode=\d)*(#\w+)?$/i)){
var tj = document.createElement('select');
tj.setAttribute('onchange', 'if(this.options[this.selectedIndex].value) window.location = this.options[this.selectedIndex].value;');
tj.options[0] = new Option('Thread Jump','');
tj.options[1] = new Option('--------------------','');
for(t=0;t<table.length;t++){
var moogocow = table[t].rows[0].cells[0];
if(table[t].cellPadding=='4' && table[t].cellSpacing=='1' && (moogocow.colSpan=='8' || moogocow.colSpan=='7')){
var td = table[t].getElementsByTagName('td');
for(i=0;i<td.length;i++){
if(td.className=='windowbg' && (td.width=='43%' || td.width=='48%')){
var aa = td.getElementsByTagName('a');
var nn = aa[0].getElementsByTagName('img')[0] ? 1:0;
var tt = nn ? neww+aa[1].innerHTML:aa[0].innerHTML;
tt = tt.length > 30 ? tt.substring(0,30)+'...':tt;
var tl = aa[nn].href;
tj.options[tj.options.length] = new Option(tt,tl);
}
}
var iCell = document.createElement('td');
iCell.colSpan = moogocow.colSpan;
iCell.className = 'windowbg';
iCell.appendChild(tj);
var iCell2 = iCell.cloneNode(true);
switch(position){
case 1: var la = table[t].insertRow(1); la.appendChild(iCell); break;
case 2: var la = table[t].insertRow(table[t].rows.length-1); la.appendChild(iCell); break;
case 3: var la = table[t].insertRow(table[t].rows.length-1); la.appendChild(iCell);
var la2 = table[t].insertRow(1); la2.appendChild(iCell2);
break;
}
}
}
}
//-->
</script>