inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Feb 19, 2010 15:48:35 GMT -8
This is a fairly simple and self-explanatory script that resizes and aligns the Info Center. I noticed that, surprisingly, no script like this already exists in the Code Index. This code goes in the Main Footer. <script type="text/javascript"> <!-- // Resize & Align Info Center // Main Footer // Trill @ ghbraingle.proboards.com // Feel free to re-post anywhere, as long as this header stays intact.
var infowidth = "600px"; var infoalign = "center";
if(document.title.match(/- Home$/)) { var infotrill = document.getElementsByTagName('table'); for(t=0; t<infotrill.length; t++) { if(infotrill.item(t).innerHTML.match(/<b>Info Center<\/b>/i) && infotrill.item(t).width == "100%" && infotrill.item(t).className == "bordercolor") { infotrill.item(t).width= infowidth; infotrill.item(t).align= infoalign; } } } //--> </script> The red value can be either a pixel amount (ex: 720px) or a percentage of the forum width (ex: 75%).The green value is the alignment of the info center. Values include "left", "right", or "center".
|
|