WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "Autoscrollable" iFrame? (8 posts)

  1. xbenas
    Member
    Posted 10 months ago #

    Hey guys, here's the page: http://www.9000.lt

    When you first visit the site, a Facebook like pop-up comes up. If you scroll down or up, it automatically adjusts itself to be on the center.

    Now, I want the same behavior as this box on my Facebook like box on the widget area.

    Can someone post me a simple code on how to get this effect?

    Thanks!

  2. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 10 months ago #

    Try the jQuery technique from this http://css-tricks.com/scrollfollow-sidebar/

  3. xbenas
    Member
    Posted 10 months ago #

    I am a little confused on how to use this.

    Obviously, just putting that CSS in the Custom CSS won't do the trick.

    #page-wrap {
      width: 600px;
      margin: 15px auto;
      position: relative;
    }
    
    #sidebar {
      width: 190px;
      position: fixed;
      margin-left: 410px;
    }

    What else I need to do after that?

    To make things simple, how to make text "Text" with that effect? The iFrame can wait.

  4. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 10 months ago #

    You can't take the CSS literally...
    Can you link your webpage?

  5. xbenas
    Member
    Posted 10 months ago #

  6. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 10 months ago #

    Try the jQuery technique instead of the CSS.

  7. xbenas
    Member
    Posted 10 months ago #

    OMG I did it! But now it keeps scrolling forever down to hell.

    How to fix this?

    BTW Thanks a lot man!

    EDIT: Maybe the infinite-scroll is because of my theme?

  8. xbenas
    Member
    Posted 10 months ago #

    I have gotten it to work the way I want, but I find it impossible to describe how.

    Case closed!

Reply

You must log in to post.

About this Topic