the name says it all
, also i already am using a code that centers the text, so if you were going to add that in you dont have to
![]()
So you want it in the center of the head image?![]()
<script>
/*Category Name in Head Image
by Wrighty
No Repost, Rip or Claiming*/
var row = 1; //Are you showing the 'Board Name' row? 1 = yes, 0 = no.
var r = get('tr','tag');
for(i=0;i<r.length;i++){
if(r[i].cells[0].className == 'title2 categorytitle' && r[i].cells[0].innerHTML.match(/\/category\//)){
r[i].cells[0].getElementsByTagName("a")[1].removeAttribute("href");
r[i].cells[0].getElementsByTagName("font")[0].removeAttribute("size");
var x = (row==1)? 1 : -1;
var num = parseInt(2 + x);
var a = r[i-num].insertCell(1);
with(a){
width="100%";
align="center";
}
a.appendChild(r[i].cells[0].firstChild);
r[i].style.display = 'none';
}
}
</script>
Edit the part in red. That is the row that appears just above where the 'category' name normally is. If you're showing it, put a 1 otherwise, a 0![]()
Any problems, post back.
Global Footer
ok well the code works, but it doesn't work with the code i have to already center the text so can you please have the code center the text then?
It should do!![]()
it doesn't and do to the board mod you made me it messes up the forum when i set it to 1 and when i set it to 0 it puts the text on the left.
Edit: I think i know whats wrong is it possibly this code?
Code:
- <style type="text/css"/>
- #forum table.head {
- width: 700px;
- height: 30px;
- display: block;
- background-image: url('http://i25.photobucket.com/albums/c51/dog199200/FMA%20Images/head.png');
- background-position: bottom center;
- }
- #forum table.base {
- width: 700px;
- height: 30px;
- display: block;
- background-image: url('http://i25.photobucket.com/albums/c51/dog199200/FMA%20Images/base.png');
- background-position: top center;
- }
- #forum .slip_bg .border{
- width: 700px !important;
- margin: auto;
- }
- #forum .slip_bg .border .border {
- width: auto !important;
- }
- #forum_table, #forum {
- margin: auto;
- }
- </style>
Send me the forum link?![]()
http://fmaadvanced.virtualforums.co.uk
Edit: also why you are looking into the error can you please make the code so that it also removes the link from the text as well, because the one that does that in the datebase doesn't work with the code.
Right, well I have modified the code to remove the category link. (Recopy it from above)
also, Why not just use the normal head/base method? Instead of this one?![]()
because of how the images are made, it would be hard to redo them to have them fit right, but did you ever find out why the code doesn't center?
Sorry, but those head and base images are ripped from Pho's skin.
You will need to get new ones.
As of now this request is locked. If you feel this is wrong, PM me. Otherwise, change them!