1.zclip-jquery plugin requires browser support FLASH10 and above, now the browser basically support
2.http://www.steamdev.com/zclip/Download Related components:
Query.zclip.min.js
zeroclipboard.swf
Go online and find a jquery frame: jquery.min.js
Code implementation:
<HTML><MetaCharSet= "UTF-8"> <style>a:active, A:hover{Outline:0}a{text-decoration:None;Outline:0}. CLR{Clear:both;Height:0; }a.react{Display:Block;Color:Inherit;Height:100%;text-decoration:None; }a.react:active, A.react.react-active{background:rgba (0, 0, 0,. 1)}. Fuzhi{width:60px;Height:30px;Line-height:30px;background:#fa870b;cursor:Pointer;Color:#fff;Display:Block;text-align:Center;font-size:. 75em;Outline:0;float: Left; }. FZ2{margin:0 Auto;-webkit-border-radius:2px;-moz-border-radius:2px;Border-radius:2px; }</style><Scripttype= "Text/javascript"src= "Jquery.min.js"></Script><Scripttype= "Text/javascript"src= "Jquery.zclip.min.js"></Script><Scripttype= "Text/javascript"> $(function(){ $('#copy'). Zclip ({path:'zeroclipboard.swf' , //copy: $ (' #qh '). Text (),//Copy the contents of a label such as Div,<span>,<p>Copy:function(){ return $('#qh'). Val ()//copy Input,textarea and other content}, Aftercopy:function(){ $('#copy'). HTML ('Replication succeeded')//replication is successful and can be omitted } }); }); </Script><Body><textareastyle= "width:250;height:200"ID= "QH">Zclip is a lightweight jQuery "copy to Clipboard" plugin built using the popular Zero Clipboard library. This plugin uses a invisible Adobe Flash movie that's fully compatible with Flash Player and below.</textarea><BR/><!--</span id = "QH" >zclip is a lightweight jQuery "copy to Clipboard" plugin built using the popular Zero clipboard Library. This plugin uses a invisible Adobe Flash movie that's fully compatible with Flash Player and below. </span><br/> -<ahref= "javascript:void (0);"class= "Fuzhi fz2"ID= "Copy" >Complex System</a></Body></HTML>
Zclip-jquery plugin supports full browser replication