I use the following function to expand the footer border for a website I'm creating:
<script type="text/javascript">
var x=5; <!--original height-->
function expand() {
document.getElementById("footer").style.height=x+'em'; <!--Gets the height from css.css in the div "move"-->
if(x>10) { <!--Desired height after expansion-->
clearTimeout(t);
return;
}
x++; <!--desired height isn't yet reached, keep expanding-->
t=setTimeout('expand()',0); <!--Speed of expansion-->
}
</script>
where I get the element by id however I've changed the footer to a div class now so it doesn't read this properly and the border doesn't expand. How can I work around this problem?