Post by SubDevo on Aug 24, 2009 13:10:04 GMT -5
Separate Menu From Welcome Table by SubDevo
Tested in IE, FF, Opera, Safari and Chrome.
Preview
This is a simple code to separate the menu bar from your welcome table.
You choose the separation height in pixels. And choose to have your menu bar under your banner or on top of it.
Enjoy!!!
SubDevo
Variable Descriptions:
Edit the Yellow portions.
var onTop=1; // Menu on top of Banner? 1=Yes, 0=No.
Enter "1" to move your menu bar above your Welcome Table.
var sepHeight=0; // Separator Height between Menu and Banner.
Enter your desired amount of "space" between the menu bar and the Welcome Table in pixels. Set it to "0" to attach the menu bar to your banner.
If both options are set to "0", then you are right back to your normal welcome table. (Why use this code then? lol)
A note about this code:
Most codes that display the amount of new/old PMs or grab the time, get that information from the welcome table and they rely upon a certain "td" count. Other similar codes change this count, and these codes break. My code does not change this count and it is compatible with the types of codes listed above.
Location: Global Header
Tested in IE, FF, Opera, Safari and Chrome.
Preview
This is a simple code to separate the menu bar from your welcome table.
You choose the separation height in pixels. And choose to have your menu bar under your banner or on top of it.
Enjoy!!!
SubDevo
Variable Descriptions:
Edit the Yellow portions.
var onTop=1; // Menu on top of Banner? 1=Yes, 0=No.
Enter "1" to move your menu bar above your Welcome Table.
var sepHeight=0; // Separator Height between Menu and Banner.
Enter your desired amount of "space" between the menu bar and the Welcome Table in pixels. Set it to "0" to attach the menu bar to your banner.
If both options are set to "0", then you are right back to your normal welcome table. (Why use this code then? lol)
A note about this code:
Most codes that display the amount of new/old PMs or grab the time, get that information from the welcome table and they rely upon a certain "td" count. Other similar codes change this count, and these codes break. My code does not change this count and it is compatible with the types of codes listed above.
Location: Global Header
<script type="text/javascript">
<!--
/* Separate Menu From Welcome Table by SubDevo */
/* Global Header - Please leave this header intact. */
/* [url]http://interoceandesigns.proboards.com[/url] or [url]http://lsdp.proboards.com[/url] */
var onTop=1; // Menu on top of Banner? 1=Yes, 0=No.
var sepHeight=0; // Separator Height between Menu and Banner.
var tb=document.getElementsByTagName("table")[0];
var sD=document.createElement("div"); (sepHeight)?sD.style.height=sepHeight+"px":nX(sD);
var nT=tb.cloneNode(true); nX(nT.rows[0]); nX(tb.rows[1]); nI(sD,tb); nI(nT,sD);
function nI(a,b){b.parentNode.insertBefore(a,(onTop)?b:b.nextSibling);}
function nX(a){a.style.display="none";}
//-->
</script>