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 g@m3r8700, Mar 19, 2012.

  1. g@m3r8700

    g@m3r8700 Registered Member

    Joined:
    Feb 11, 2012
    Messages:
    52
    Likes Received:
    13
    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! :)

    Regards,
     
  2. dunker

    dunker Newbie

    Joined:
    Jun 16, 2010
    Messages:
    15
    Likes Received:
    1
    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.