Zclip-jquery plugin supports full browser replication

Source: Internet
Author: User

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&nbsp;System</a></Body></HTML>

Zclip-jquery plugin supports full browser replication

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.