|
Post by tunescool on Apr 27, 2012 3:21:06 GMT -8
i was downloading pics and looked up and the site i was on had their thread titles centered in a table or fieldset or whatever but it looked really good for a second to me, it looked all professional or something. v5 is only months away but it wont take that much anyway. i wont need the fieldset because of where pbs thread titles are but i want to center the titles and Read and Thread Started info, and adjust the font size of the Title only, well theres already one for read anyway <script type="text/javascript"> <!-- /* Remove Author Title Row And Place Read */
/* By Alex - Open Source */
var tunescool_Request={
Font_Colour: "6D6D6D", //Font Colour Smilies_Message: "Please Try To Have A Date In The Title For The Archives", //Smilies Message
Location: function(){ if(window.location.href.match(/action=(display|(user)?recent|viewprofile|(calendar|pm)view)/)){ this.Execute_Read(); } if(document.postForm){ this.Execute_Smilies(); } }, Execute_Read: function(){ var Td=document.getElementsByTagName('td'); var i=Td.length-1; do{ if(Td.item(i).vAlign=="middle" && Td.item(i).align=="left" && Td.item(i).className=="catbg" && Td.item(i).width=="80%" && Td.item(i).innerHTML.match(/\(Read (.+?) time(s)?\)/)){ var Times_Span=document.createElement('span'); Times_Span.innerHTML='<font size="2" color="'+this.Font_Colour+'"><b>Read '+RegExp.$1+' Times</b></font> '; var Parent = Td.item(i+1).nextSibling.getElementsByTagName('td').item(1); Parent.insertBefore(Times_Span, Parent.firstChild.nextSibling.nextSibling); Td.item(i).parentNode.style.display='none'; } i--; } while(i>5); }, Execute_Smilies: function(){ var Smilies = document.postForm.subject.parentNode.parentNode.nextSibling; var New_Row=Smilies.cloneNode(true); New_Row.getElementsByTagName('font').item(0).innerHTML='Note:'; New_Row.getElementsByTagName('td').item(1).innerHTML='<font size="2"><b>'+this.Smilies_Message+'</b></font>'; if (pb_username!='Guest') Smilies.parentNode.insertBefore(New_Row, Smilies.nextSibling); } } tunescool_Request.Location();
//--> </script>
|
|
|
Post by Wormopolis on Apr 27, 2012 6:39:16 GMT -8
after this line
Parent.insertBefore(Times_Span, Parent.firstChild.nextSibling.nextSibling);
add this
Parent.align='center';
|
|
|
Post by tunescool on Apr 27, 2012 7:01:42 GMT -8
is that the center of that row, or could i have some code thats getting in the way? well anyway i looked at it again and i like it where it is, i like all that offset stuff and then just adjust the font size of just the title
|
|
|
Post by Wormopolis on Apr 28, 2012 1:04:10 GMT -8
That is the center of that cell. there are 2 cells there, the right one has the buttons in it. you cant get the middle of that entire row without removing the buttons.
add in after that line you added
Parent.getElementsByTagName('b')[0].parentNode.size='3';
|
|
|
Post by tunescool on Apr 28, 2012 1:27:35 GMT -8
i tried to put italic in two diff ways but it wouldnt work, how could i add that
and a different font type
|
|
|
Post by Wormopolis on Apr 28, 2012 23:28:23 GMT -8
would being able to just put in your own HTML tags around the text be easier for you?
|
|
|
Post by tunescool on Apr 28, 2012 23:42:47 GMT -8
thatd be fine
|
|
|
Post by Wormopolis on Apr 29, 2012 1:19:30 GMT -8
Parent.getElementsByTagName('b')[0].innerHTML='<font face="new york"><i>' + Parent.getElementsByTagName('b')[0].innerHTML + '</i></font>';
|
|
|
Post by tunescool on Apr 29, 2012 2:04:34 GMT -8
alrite but theres a gap between the title and the line below it and it changes with the font size, can that be helped
|
|
|
Post by Wormopolis on Apr 29, 2012 11:44:55 GMT -8
its a result of the font tag Im afraid.
|
|
|
Post by tunescool on Apr 29, 2012 12:35:10 GMT -8
the tag itself?
<font face="new york">
would doing it like the centered line not have the gap?
|
|
|
Post by Wormopolis on Apr 29, 2012 17:34:30 GMT -8
the font tag with the size adjustment.
|
|
|
Post by tunescool on Apr 29, 2012 18:31:54 GMT -8
well i dont know how to the other way
|
|
|
Post by Wormopolis on Apr 29, 2012 20:05:24 GMT -8
no what I am saying, is the size attribute of the font tag adds the spacing.
|
|
|
Post by tunescool on Apr 29, 2012 20:23:03 GMT -8
well then im stuck with it, thanks wormer
|
|