Post by hey on Oct 13, 2005 17:18:40 GMT -8
Preview: fusionmodtest.proboards50.com/index.cgi
Global Footer. Cross Browser.
Global Footer. Cross Browser.
<script type="text/javascript">
/*
Fusion Board Modification V1
Created by hey
Do not repost and keep header intact
*/
//Do not edit
var td=document.getElementsByTagName("td");
for(i=0;i<td.length;i++){
var des = td[i].innerHTML.split(RegExp("<br>","i"))[1];
var mods = td[i].innerHTML.split(RegExp("<br>","i"))[2];
if(td[i].width=="66%" && td[i].className=="windowbg2"){
if(td[i+3].getElementsByTagName("font")[0].size=="1" && td[i+3].getElementsByTagName("font")[0].innerHTML.split(" ")[0]==""){
var ibracketa = ''; var ibracketb = ''; var iong = '';} else {
var ibracketa = '['; var ibracketb = ']'; var iong = 'on';}
var idate = (td[i+3].innerHTML.match(/on (.+?)<br\/?>/i)) ? RegExp.$1: '';
var ilastuser = (td[i+3].innerHTML.match(/by (.+?)<br\/?>/i)) ? RegExp.$1: '';
var ilastpost = (td[i+3].innerHTML.match(/in (.+?)<\/font>/i)) ? RegExp.$1: '';
td[i].innerHTML='<a name="'+td[i].getElementsByTagName("a")[0].name+'" /><table width=100%><tr><td valign=middle width="50%">'+td[i].getElementsByTagName("font")[0].innerHTML+'<br /><font size="1">'+ilastuser+' '+iong+' '+idate+'<br />'+ibracketa+''+ilastpost+''+ibracketb+'</font></td><td valign=middle align=right><font size="1">'+des+'<br />'+mods+'</font></td></tr></table>';}
if(td[i].width=="24%"){
td[i].style.display="none"}
with(td[i]) {
if(className=="windowbg2" && innerHTML.match(/<sup/i)) {
td[i].getElementsByTagName("sup")[0].style.display = "none";
}}
if(location.href.match(/\?board=\w+&?((mod\w+|page)=\d+)?$/)){
if(td[i].className=="windowbg" && td[i].width=="48%" || td[i].className=="windowbg" && td[i].width=="43%"){
var ipages = (td[i].innerHTML.match(/Pages: (.+?) ]/i)) ? RegExp.$1: '1';
td[i].innerHTML='<table width=100%><tr><td valign=middle width="65%">'+td[i].innerHTML.split(/<b>/i)[0].split(/<\/b>/i)[0] +'</font><a href="'+td[i].getElementsByTagName("a")[0].href+'"><b>'+ td[i].innerHTML.split(/<b>/i)[1].split(/<\/b>/i)[0]+'</b></a><font size=1><br />'+td[i+4].innerHTML.split(/by\s/i)[1]+'</font><font size="1"> on '+td[i+4].innerHTML.split(/by\s/i)[0]+'</font></td><td valign=middle align=right><font size=1>[ Pages: '+ipages+' ]<br />Starter: '+td[i+1].innerHTML+'</font></td></tr></table>'}}
for(t=0;t<td.length;t++){
if(td[t].width=="20%" && td[t].className=="catbg" && td[t].innerHTML.match(/Last Post/i)){
td[t].style.display="none"}
if(td[t].width=="20%" && td[t].className=="windowbg2" && td[t].innerHTML.match(/by/i)){
td[t].style.display="none"}
if(td[t].width=="14%" && td[t].className=="catbg"){
td[t].style.display="none"}
if(td[t].width=="14%" && td[t].className=="windowbg2"){
td[t].style.display="none"}}
for(sup=0;sup<td.length;sup++) {
with(td[sup]) {
if(className=="windowbg" && innerHTML.match(/<sup/i)) {
td[sup].getElementsByTagName("sup")[0].style.display = "none";
}}}}
</script>