Thread: scrolling <DIV>
View Single Post
  #3 (permalink)  
Old July 15th, 2004, 04:50 PM
Snib Snib is offline
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Try something like this:

<script type="text/javascript">
var menu = document.getElementById("menu");
function refreshMenu()
{
 menu.style.top = screen.height - 150;
 menu.style.left = screen.width - 150;
}
setTimeout("refreshMenu()",1);
</script>
<div id="menu" style="width:100;height:100;background-color:black"></div>

If this works correctly, a black box will scroll with the scroll bar in the bottom-right of the page.

Snib

<><
Reply With Quote