작성일 : 15-03-18 15:49
|
[JQuery] 클립보드 복사 프로그램 및 코드
|
|
|
글쓴이 :
조형래
 조회 : 3,180
|
http://www.steamdev.com/zclip/ [2233] |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script>
$(document).ready(function(){
$("#copy-button").zclip({
path: "js/ZeroClipboard.swf",
copy: function(){
return $("#phaTextarea").val();
}
});
});
</script>
<div class="tp_h_title_center tp_h_clear_both tp_h_head_wrap tp_h_size_20"> 문서로 데이터 작성하기 </div>
<ul class="tp_h_page_004_list ">
<li id="tp_h_textarea_wrap">
<textarea id="phaTextarea" class="tp_phu_text_area_edit"></textarea>
</li>
</ul>
<div class="tp_h_btn_wrap tp_h_width_100">
<span class="tp_h_btn tp_h_width_30" id="copy-button" style="cursor:pointer"><a>문서 복사</a></span>
</div>
</div>
|
|