I wonder how the http:j.mp can use the auto copy function. Please help me!
views:
345answers:
2
                
                A: 
                
                
              They use Flash to copy to clipboard.
<embed 
 width="46" 
 height="26" 
 type="application/x-shockwave-flash" 
 src="/static/CopyClipboardButton.swf?v=3.0" 
 flashvars="copyTextContainerId=short_url&fontSize=14&fontFace=Helvetica&fontColor=#555555&imageUrl=http://j.mp/static/images/index_copy_button_bento_dark.jpg&amp;copyText=" 
 wmode="transparent"/>
                  Sam
                   2009-12-23 03:42:33
                
              please give me complete source code. For an example, i want to copy this text: bla bla bla. Can you give me the full code please?
                  Heypy.com
                   2009-12-23 04:28:41
                
                +1 
                A: 
                
                
              Flash is the only solution i think (at least, when I looked for the same solution a few years ago). Here is a complete example and some interesting comments. You should find what you need.
                  Baztoune
                   2009-12-23 11:07:09
                
              As a complement : ZeroClipboard seems to be a recent and serious project and has a complete documentation, and some working examples.http://code.google.com/p/zeroclipboard/
                  Baztoune
                   2009-12-23 11:15:02
                Everything's here http://code.google.com/p/zeroclipboard/wiki/Instructions It is a library so you have to import it, then declare a "client" in your javascript function, and save text using client.setText(YourSelection). I can't make it magic.
                  Baztoune
                   2009-12-23 13:55:30