Results 1 to 2 of 2

Thread: moving images

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    1
    How can I add an image to my site that will move as the person scrolls up and down the page?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width