treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Copy link/text to Clipboard

  • I'm using ZeroClipboard for copying my short url's to the clipboard. This can either be a link or actual text.

    What I'm trying to do is, instead of having a button to copy, I'd rather have the user click on the link/text and it be copied without a button.

    When the user clicks, I'd like the link/text to fade out and new text to fade in that says "Copied!".

    I am using bit.ly to generate the short URL's using a custom domain.

    Anyone have an idea? Here is a link to a rough example. http://jsfiddle.net/4QtLC

  • Oops. Not solved just yet. Can someone help me with a little jQuery?

    Click on the URL in the html box. I need the "Copied!" to fade in and out.

    http://jsfiddle.net/ChristopherBurton/wsfLH/