Onika Staas
08-09-2005, 05:53 PM
Hi, I am CSS and Javascript newbie and currently trying to build a website where I want the footer to start where ever the longest column ends.
Can someone please have a look at the following script and let me know, where I am going wrong and if I need to insert this in my template, in my CSS sheet or in each individual page, as my footer who is on "hidden" in my CSS style sheet, does not appear, when I load the index page!
// JavaScript Document
<skript type="text-javascript">
function adjustLayout()
{
// Ermittle die tatsaechlichen Hoehenwerte
var cHeight = xHeight ("main_content");
var cHeight = lHeight ("infofield_content");
//Ermittle den groessten Hoehenwert
var maxHeight = Math.max(cHeight, Math.max(lHeight));
// Weise den groessten Hoehenwert allen Spalten zu
xHeight("main", maxHeight);
xHeight("infofield", maxHeight);
// Zeige die Fusszeile and
xShow("border_low");
xShow("footer");
}
window.onload = function ()
{
xAddEventListener(window, "resize", adjustLayout, false);
}
</skript>
Thank you so much for your help!
Onika
Can someone please have a look at the following script and let me know, where I am going wrong and if I need to insert this in my template, in my CSS sheet or in each individual page, as my footer who is on "hidden" in my CSS style sheet, does not appear, when I load the index page!
// JavaScript Document
<skript type="text-javascript">
function adjustLayout()
{
// Ermittle die tatsaechlichen Hoehenwerte
var cHeight = xHeight ("main_content");
var cHeight = lHeight ("infofield_content");
//Ermittle den groessten Hoehenwert
var maxHeight = Math.max(cHeight, Math.max(lHeight));
// Weise den groessten Hoehenwert allen Spalten zu
xHeight("main", maxHeight);
xHeight("infofield", maxHeight);
// Zeige die Fusszeile and
xShow("border_low");
xShow("footer");
}
window.onload = function ()
{
xAddEventListener(window, "resize", adjustLayout, false);
}
</skript>
Thank you so much for your help!
Onika