利用2个文件
ZeroClipboard.js
ZeroClipboard.swf
复制代码 代码如下:
<script type="text/javascript" src="/UploadFiles/2021-04-02/ZeroClipboard.js"><script language="JavaScript">
var clip = null;
function $(id) { return document.getElementById(id); }
function init(xm) {
clip = new ZeroClipboard.Client();
clip.setHandCursor( true );
clip.addEventListener('load', function (client) {
debugstr("Flash movie loaded and ready.");
});
clip.addEventListener('mouseOver', function (client) {
// update the text on mouse over
clip.setText($('txt_links').value );
});
clip.addEventListener('complete', function (client, text) {
debugstr(xm );
});
clip.glue( 'd_clip_button', 'd_clip_container' );
}
function debugstr(msg) {
if(msg=='1'){
alert('复制成功,请用Chrl+V粘贴');
//alert('chushihu,请用Chrl+V粘贴');
}else{
}
}
</script>
注意:<body onload="init(1);">
ZeroClipboard.js
ZeroClipboard.swf
复制代码 代码如下:
<script type="text/javascript" src="/UploadFiles/2021-04-02/ZeroClipboard.js"><script language="JavaScript">
var clip = null;
function $(id) { return document.getElementById(id); }
function init(xm) {
clip = new ZeroClipboard.Client();
clip.setHandCursor( true );
clip.addEventListener('load', function (client) {
debugstr("Flash movie loaded and ready.");
});
clip.addEventListener('mouseOver', function (client) {
// update the text on mouse over
clip.setText($('txt_links').value );
});
clip.addEventListener('complete', function (client, text) {
debugstr(xm );
});
clip.glue( 'd_clip_button', 'd_clip_container' );
}
function debugstr(msg) {
if(msg=='1'){
alert('复制成功,请用Chrl+V粘贴');
//alert('chushihu,请用Chrl+V粘贴');
}else{
}
}
</script>
注意:<body onload="init(1);">
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com
暂无“JS+flash实现chrome和ie浏览器下同时可以复制粘贴”评论...