|
Post by CD on Jul 5, 2005 14:03:04 GMT -8
Easy. Blame Crazy. Actually, its only a problem if you try to use the text to image. Because Crazy messed with the code. All you'd need to do is open up the external, take the info, and put it after height and before the replace code.
|
|
|
Post by CrAzY_J on Jul 6, 2005 9:08:12 GMT -8
my host is down.
|
|
|
Post by netsirk on Jul 6, 2005 11:03:44 GMT -8
Okay, I understand that the host is down. But what is this opening the External. I don't understand that at all.
|
|
|
Post by CD on Jul 6, 2005 11:06:33 GMT -8
<script type='text/javascript'> /* Adcanced Category Splitter V1.0 Created By CrAzY_J & CDDude229 (http://hatakeforum.proboards30.com) Do not redistribute this code without the permission of it's creators */
var header = "Header Image"; var headht = "19px"; var footer = "Footer Image"; var splits = "50";
// No need to edit below here var bgcolor = document.body.getAttribute('bgcolor'); var aTB = document.getElementsByTagName("TABLE"); var aTD = document.getElementsByTagName("TD"); var headtb = "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td style='background-image: url("+header+"); height: "+headht+";' align='center' class='sbg'>"; var foottb = "<img src='"+footer+"' border='0' align='center'>";
for(t=0;t<aTB.length;t++){ if(aTB[t].cellPadding=='4' && aTB[t].cellSpacing=='1' && aTB[t].rows[0].innerHTML.match(/forum\sname/i)){ var two=aTB[t].rows[0].cloneNode(true).innerHTML; aTB[t].rows[1].style.display='none'; for(e=0;e<aTD.length;e++){ if(aTD[e].width=="66%" && aTD[e+4].className=="catbg" && aTD[e+4].align!='right'){ var dude = aTD[e].parentNode.innerHTML; aTD[e+4].parentNode.style.display="none"; var cd = aTD[e+4].innerHTML; aTB[t].parentNode.parentNode.parentNode.parentNode.parentNode.innerHTML=aTB[t].parentNode.parentNode.parentNode.parentNode.parentNode.innerHTML.replace(dude,dude+"</tr></table>"+foottb+"<div style='height:"+splits+"'></div>"+headtb+cd+"</td></tr></table><table border='0' cellpadding='4' cellspacing='1' class='bordercolor'><tr>"+two+"</tr><tr style='display: none;'>"); } } aTB[t].className='bordercolor'; aTB[t].parentNode.parentNode.parentNode.style.backgroundColor=bgcolor; aTB[t].parentNode.innerHTML=headtb+aTB[t].rows[1].cells[0].innerHTML+"</td></tr></table>"+aTB[t].parentNode.innerHTML+foottb;
break; }}
for(a=0;a<aTB.length;a++){ if(aTB[a].width=="100%" && aTB[a].border=="0" && aTB[a].cellPadding=="4" && aTB[a].cellSpacing=="1" && aTB[a].rows[0].cells[0].innerHTML.match(/news/i)){ aTB[a].parentNode.parentNode.parentNode.style.backgroundColor=bgcolor; aTB[a].className='bordercolor' aTB[a].rows[0].style.display="none"; aTB[a].parentNode.innerHTML=headtb+aTB[a].rows[0].cells[0].innerHTML+"</td></tr></table>"+aTB[a].parentNode.innerHTML+foottb+"<br><br>";
break; }}
//text to image function replace(first,second){ for(a=0;a<aTD.length;a++){ if(aTD[a].className=="sbg"){ aTD[a].innerHTML = aTD[a].innerHTML.replace(first,"<img src='"+second+"' border='0'>"); }}}
replace("Category name to replace","URL to category image")
</script>
Use that
|
|
|
Post by netsirk on Jul 6, 2005 11:07:38 GMT -8
Thanks alot.
|
|