Working on a site that uses CSS layers for the secondary nav.
Though not essential, it looks way better with the table in the center,
but of course, I need help getting onResize to position them properly.
No luck.
Here's whats I gots:
This is placed right after the meta-tags in the header:
Code: Select all
<script language = “JavaScript”>
<!-- Hide from non-JavaScript Aware Browsers
function centerLayout()
{
var layoutwidth = 800 // set the width of the page here
if (navigator.appName == 'Netscape') {
var bodyWidth = self.innerWidth;
var theOffset = ((bodyWidth - layoutWidth)/2) - 10;
if (theOffset > 0)
document.layers['LayoutLYR'].left = theOffset;
} else {
var bodyWidth = document.body.offsetWidth;
var theOffset = ((bodyWidth - layoutWidth)/2) - 10;
if (theOffset > 0)
document.all.tags('DIV')['Layout.LYR'].style.left=theOffset;
}
// End Hiding -->
</script>Code: Select all
onLoad="MM_preloadImages(); centerLayout()" onResize = "centerLayout();"