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

Help needed - Make script to hide link

Discussion in 'HTML & JavaScript' started by [email protected], Mar 19, 2012.

  1. g@m3r8700

    [email protected] Registered Member

    Feb 11, 2012
    Likes Received:
    Hey guys,

    I have a question, i need a script, possibly javascript, that will hide my link, until a orbject, like "like" or "tweet" button is pressed on the website, and then reveal the link after x seconds... does anyone know of such script? or if its possible to make?

    Would really appreciate any help or answers to this! :)

  2. dunker

    dunker Newbie

    Jun 16, 2010
    Likes Received:
    Facebook offers something called JavaScript SDK - you include this file into the HTML code of your website. By doing this, you're now able to "hook" various actions to events, such as "Like button pressed".

    In other words, whenever a user "likes" something, you can specify what function is called. This function can then easily hide or show your link.

    I'm sure Twitter offers something similar.