Pain
Full Member
Posts: 140
Pain said 0 great things
|
Post by Pain on Jun 23, 2011 2:59:54 GMT -8
I would like to replace my category bar with the above image. Is it possible?
|
|
|
Post by Wormopolis on Jun 23, 2011 18:33:05 GMT -8
are you diving the categories too?
|
|
Pain
Full Member
Posts: 140
Pain said 0 great things
|
Post by Pain on Jun 27, 2011 9:07:31 GMT -8
Ummm don't really know what you mean, but I have four categories, and i want to replace all four of the bars with images.
|
|
|
Post by Wormopolis on Jun 27, 2011 15:34:21 GMT -8
sorry. that should say dividing. i still have trouble typing sometimes. if you are dividing, then we can use a head/base category divider for it.
otherwise somethingnew is going to have to be written
|
|
Pain
Full Member
Posts: 140
Pain said 0 great things
|
Post by Pain on Jul 1, 2011 3:12:10 GMT -8
if you mean putting spaces between each category, it would be better if there would be no spaces.
|
|
Pain
Full Member
Posts: 140
Pain said 0 great things
|
Post by Pain on Jul 1, 2011 6:24:21 GMT -8
And different head images for each category.......
|
|
|
Post by Wormopolis on Jul 1, 2011 18:18:56 GMT -8
|
|
Pain
Full Member
Posts: 140
Pain said 0 great things
|
Post by Pain on Jul 3, 2011 2:20:21 GMT -8
The code isn't working.
|
|
|
Post by Wormopolis on Jul 3, 2011 2:40:27 GMT -8
need the url of the site... I cant memorize em all..
|
|
|
Post by Wormopolis on Jul 3, 2011 2:45:58 GMT -8
move the code to top of main footer. and you only have head and base images set up for staff category?
|
|
Pain
Full Member
Posts: 140
Pain said 0 great things
|
Post by Pain on Jul 4, 2011 1:00:52 GMT -8
www.tbforever.proboards.comI only need a header image for the categories and its still not working. I have only made an image for the general category. Once i've tested it and seen how it works ill make the others.
|
|
|
Post by Wormopolis on Jul 4, 2011 8:09:19 GMT -8
change this line
if(table.cellPadding =='4' && table[i-1].className =='bordercolor' && table.rows[0].cells[0].firstChild.innerHTML.match(/Forum\sName/i)){
to this
if(table.cellPadding =='4' && table[i-1].className =='bordercolor' && table.rows[0].cells[0].firstChild && table.rows[0].cells[0].firstChild.innerHTML && table.rows[0].cells[0].firstChild.innerHTML.match(/Forum\sName/i)){
|
|
Pain
Full Member
Posts: 140
Pain said 0 great things
|
Post by Pain on Jul 4, 2011 18:09:36 GMT -8
aaaaannnddd its still not working. heres the code as i'm using:
Main Header:
<style type="text/css"> <!--
.generalhead { background-image: url(http://i55.tinypic.com/2hyf5ls.png); height: 34px; width: 750px; }
--> </style>
Main Footer:
<script type='text/Javascript'> <!--
/* Category Splitter w/Different head/base images - DregondRahl Donot Repost this code or edit this copyright http://support.proboards.com */
var iTableWidth = "100%"; var catSpacing = "30px";
//Do not Edit Below
var table = document.getElementsByTagName('table'); var div = document.createElement('div'); var divA = document.createElement('div'); divA.style.height = catSpacing ;
if(location.href.match(/action=(change|home)/i) || !location.href.match(/action=/i)){ for(i=0; i<table.length; i++){ if(table[i].cellPadding =='4' && table[i-1].className =='bordercolor' && table[i].rows[0].cells[0].firstChild && table[i].rows[0].cells[0].firstChild.innerHTML.match(/Forum\sName/i)){
for(r=1; r<table[i].rows.length; r++){
if(table[i].rows[r].getElementsByTagName('a')[0].name){
var name = table[i].rows[r].getElementsByTagName('a')[0].name var divH = document.createElement('div'); var divB = document.createElement('div'); divH.className = name+'head'; divB.className = name+'base';
var tab = document.createElement('table'); tab.width = iTableWidth; tab.className = 'bordercolor'; tab.id = 'daSplit'; tab.cellPadding = '4'; tab.cellSpacing = '1'; tab.align ='center';
var cat = table[i].rows[r].cells[0].lastChild; tab.appendChild(document.createElement('tbody')); tab.firstChild.appendChild(table[i].rows[0].cloneNode(true));
var title = tab.rows[0].cells[0].firstChild.firstChild; title.parentNode.replaceChild(cat,title);
div.appendChild(divA.cloneNode(true)); div.appendChild(divH); div.appendChild(tab); div.appendChild(divB);
} else if(table[i].rows[r].cells[4]){ tab.lastChild.appendChild(table[i].rows[r].cloneNode(true)); } }
table[i-1].parentNode.replaceChild(div,table[i-1]); break; } } } //--> </script>
|
|
|
Post by Wormopolis on Jul 4, 2011 20:33:58 GMT -8
its mad that you have side tables. your sidetables are matching part of the code where it searches, but then you have plaint text instead of a font tag.
recopy my edit above
|
|
Pain
Full Member
Posts: 140
Pain said 0 great things
|
Post by Pain on Jul 5, 2011 16:40:49 GMT -8
omg its working. ;D thank you very much once again wormo
|
|