Hi again,

I have a great little script to float a navigation section for long
pages and it works perfectly in all browsers except IE.

Here's the script:

<script type="text/javascript" language="JavaScript">
function FloatPosition()
{
var ns = (navigator.appName.indexOf('Netscape') != -1);
var pos = document.getElementById('NavBar');
var pad = ns ? pageYOffset : document.body.scrollTop;
if(pad < 1) { pad = 0; }
pos.style.height = pad + 'px';
}
onscroll=FloatPosition;
onresize=FloatPosition;
</script>

And of course you ad the 'NavBar' div to the element.


So, can this be made to work in IE (seems IE has a problem with
getElementById) or is there a better method all together?

Paul