1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can You Do This Trick With Wordpress

Discussion in 'Blogging' started by blacktrilby, Mar 3, 2015.

  1. blacktrilby

    blacktrilby Power Member

    Joined:
    Dec 9, 2008
    Messages:
    525
    Likes Received:
    397
    Occupation:
    Webmaster
    Location:
    Matt Cutts Underwear
    I was reading the news and noticed the last G ad in the sidebar stayed in view when scrolling down the page and then disappears when you get to the bottom.
    Any Idea how this is done?


    http://www.independent.co.uk/news/people/
     
  2. kbklash

    kbklash Senior Member

    Joined:
    Jun 2, 2012
    Messages:
    1,140
    Likes Received:
    449
    Location:
    in my BMW to my BHW
    Home Page:
    Why not. It's called 'On scroll event" .Detecting your mousewheel with onscroll javascript function.
    You add this JavaScript to php(wordpress) and use it there.
     
  3. kuvva

    kuvva Registered Member

    Joined:
    May 8, 2013
    Messages:
    92
    Likes Received:
    17
    • Thanks Thanks x 2
  4. blacktrilby

    blacktrilby Power Member

    Joined:
    Dec 9, 2008
    Messages:
    525
    Likes Received:
    397
    Occupation:
    Webmaster
    Location:
    Matt Cutts Underwear
    Thanks kuvva just what I was looking for :)
     
  5. ploaie_neagra

    ploaie_neagra Newbie

    Joined:
    Apr 18, 2010
    Messages:
    29
    Likes Received:
    0
    is there such an addon for visual composer ?
     
  6. Greengolegend

    Greengolegend BANNED BANNED

    Joined:
    Feb 11, 2017
    Messages:
    377
    Likes Received:
    90
    Gender:
    Male
    Does this add any value?
     
  7. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,199
    Likes Received:
    2,406
    Occupation:
    blog creator
    Location:
    UK
    Probably not when the thread is 2 years old
     
    • Thanks Thanks x 1
  8. RoiBox

    RoiBox Regular Member

    Joined:
    Apr 4, 2009
    Messages:
    237
    Likes Received:
    161
    Occupation:
    Internet Entrepreneur
    Location:
    Gothenburg | Sweden
    Home Page:
    Yes, it add´s value depending on what you use it for, EVEN if the thread is 2 years old.