As usual, IE does not support certain properties, in this case, window.pageYOffset, so I bummed some code off a site.
Code:
<script type="text/javascript">
function getScrollY() {
var scrOfY = 0;
if(window.pageYOffset!==undefined) scrOfY = window.pageYOffset;
else if(document.body && (document.body.scrollTop)) scrOfY = document.body.scrollTop;
else if(document.documentElement && (document.documentElement.scrollTop)) scrOfY = document.documentElement.scrollTop;
return scrOfY;
}
o = document.getElementById("right");
o.style.position = "relative";
o.startOffsetTop = o.offsetTop;
window.setInterval(function(){o.style.top = Math.max(getScrollY() - o.startOffsetTop, 0) + "px";}, 20);
</script>
Bookmarks