How can I add an image to my site that will move as the person scrolls up and down the page?
Printable View
How can I add an image to my site that will move as the person scrolls up and down the page?
This will work in IE only...
Set the style of the div to whatever you want.
Josh
Code:<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>