groundzero
Feb 1st, 2001, 12:04 PM
How can I add an image to my site that will move as the person scrolls up and down the page?
JoshT
Feb 1st, 2001, 12:47 PM
This will work in IE only...
Set the style of the div to whatever you want.
Josh
<script language="JavaScript" type="text/javascript">
<!--
function keepMenu() {
if (document.all) { // Quick IE check
menu.style.pixelTop=document.body.scrollTop;
setTimeout("keepMenu()",1);
}
}
//-->
</script>
<body onLoad="keepMenu();">
<div id="menu">Insert Your HTML Here</div>