SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member tammyhart's Avatar
    Join Date
    Dec 2005
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help finding a script

    Hey guys, I was wondering if you might know offhand where I can find a snippet that will let me have a sliding div that moves when the user scrolls, but doesn't move until the top of the div reaches the top of the browser window.

    Here's the perfect Example: http://www.gateway.com/configurator....ecid=529667523

  2. #2
    SitePoint Guru alecrust's Avatar
    Join Date
    Jun 2007
    Location
    London, UK
    Posts
    728
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How about the top one on this list:
    http://www.javascript-fx.com/navigation/index.html

    Or this:
    http://www.dynamicdrive.com/dynamici...staticmenu.htm

    It's amazing what you can find when you Google "Floating Menu Script"
    Honda Civic Forum - UK Civic Forum
    Web Host Reviews - Independent, honest host reviews
    My Portfolio - Simplicity is the ultimate sophistication

  3. #3
    SitePoint Member tammyhart's Avatar
    Join Date
    Dec 2005
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it is easy to do that. It's also easy to look at both of these examples and see that they scroll as soon as the user scrolls. I want mine to scroll only when the top of the floating div reaches the top of the browser window, shown in my example. This is very important for what I'll be using it for.

  4. #4
    SitePoint Guru alecrust's Avatar
    Join Date
    Jun 2007
    Location
    London, UK
    Posts
    728
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I can see that, I thought that would give you a head start, or perhaps you could modify one of those scripts.

    Why not try having a look at the JavaScript used in your example?
    Honda Civic Forum - UK Civic Forum
    Web Host Reviews - Independent, honest host reviews
    My Portfolio - Simplicity is the ultimate sophistication

  5. #5
    SitePoint Member tammyhart's Avatar
    Join Date
    Dec 2005
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did look at the script they are using, but I wasn't sure if it's okay to rip the script like that or not.

    I don't write javascript, I just know how to use it and manipulate it.


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
  •