jQuery Zeroclipboard v2

This update added a few features to the plugin:

  • Uses one flash element being repositioned around the page. Decreases load times and stress when multiple elements are copyable.
  • Added the choice to choose which size method to use (Outer, inner, standard .width()/.height())
  • Removed a couple of dependencies, and removed the resize event. This was due to the fact that if you resize an inactive
    element, it updates next time it is hovered over. Also if needed, the update can be called manually, which is a lot more
    resource friendly :p
  • Added the events ‘mouseleave’, ‘mouseenter’, and ‘complete’ (Which is fired after a successful copy)
  • Just about rewrote the thing, lots of code changes.

And a video of the script in action after the jump.

jQuery ZeroClipboard plugin from Kris K on Vimeo.