SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    webb city, mo
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do i call a JS function when the window is scrolled.

    I need to reset the placement of an item on the page so that it stays in a particular location relative to the window. When a user scrolls the page I want to call a function to reset it's style and move it to the bottom of the window. As it is now it's at the bottom when the page loads but it gets stuck and if the page can be scrolled down, it moves up with the other content.

    Please help.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have several different floater demos - one of them uses position:fixed and even simulates it for IE6 :-)


Bookmarks

Posting Permissions

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