<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>js代码ZeroClipboard组件复制剪切板兼容firefox,Chrome,IE</title>
<meta name="description" content="js代码ZeroClipboard组件制作复制剪切板复制粘贴文字内容,一键即可复制粘贴文字内容。兼容各大主流浏览器firefox,,Chrome,IE等。" />
</head>
<body>
<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px/180% Arial, Helvetica, sans-serif ,"新宋体";}
.demo{width:680px;margin:40px auto 0 auto;}
.demo td{padding:5px;}
#copy-button{width:125px;height:45px;cursor:pointer;border:0;background:url(images/btn.gif) no-repeat;}
</style>
<div class="demo">
<table width="100%">
<tr>
<td>
<textarea id="copytext" name="codeiframe" rows="5" cols="60">jsfoot 网页特效比网站建设用户提供jquery 特效 js特效 flash特效 div+css教程 html5教程 提示框 弹出层 浮动层 手风琴 评分、进度条 日期时间 颜色选择器 滚动条美化等多种网页特效。http://www.jsfoot.com/</textarea>
</td>
</tr>
<tr>
<td><input type="button" value="" id="copy-button" /></td>
</tr>
</table>
</div>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/ZeroClipboard.js"></script>
<script type="text/javascript">
var clip = null;
ZeroClipboard.setMoviePath("swf/ZeroClipboard.swf");
$(document).ready(function(){
clip = new ZeroClipboard.Client();
clip.setHandCursor(true);
clip.setText($("#copytext").val());
clip.glue("copy-button");
clip.addEventListener("complete", function(){
alert("代码已复制到剪贴板!");
});
});
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
js代码ZeroClipboard组件复制剪切板兼容firefox,Chrome,IE
共5个文件
js:2个
gif:1个
swf:1个
3星 · 超过75%的资源 需积分: 9 20 下载量 40 浏览量
2013-10-28
14:25:36
上传
评论
收藏 35KB RAR 举报
温馨提示
js代码ZeroClipboard组件制作复制剪切板复制粘贴文字内容,一键即可复制粘贴文字内容。兼容各大主流浏览器firefox,,Chrome,IE等
资源推荐
资源详情
资源评论
收起资源包目录
ZeroClipboard.rar (5个子文件)
images
btn.gif 3KB
js
ZeroClipboard.js 10KB
jquery-1.4.2.min.js 78KB
swf
ZeroClipboard.swf 1KB
demo.html 2KB
共 5 条
- 1
资源评论
- 匆匆过客10162016-03-24不能用了 firefox下不能用
- 応振强2013-12-28不能用了 firefox下不能用
- okchenyi2014-07-20不能用,骗分的!
- laiziyong2014-01-27firefox下不能用
- arx90442014-10-11经测试无法使用
huangjianxiang1875
- 粉丝: 65
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功