引用來源:http://dajiamazu.pixnet.net/blog

 

編輯語法:

<div>
 <script type="text/javascript" src="//s.pixfs.net/js/copy/ZeroClipboard.js"></script>
<script type="text/javascript">
jQuery(function(){
    var clip = new ZeroClipboard.Client();
    ZeroClipboard.setMoviePath('//channel.pixnet.net/static/ZeroClipboard.swf');
    clip.setHandCursor(true);
    clip.addEventListener('mouseDown', function(client) {
        clip.setText(jQuery('#copy_text').val());
        setTimeout("alert('取得貼紙語法成功');", 100);
    } );
    clip.glue('d_clip_button');
});
</script>
<center><embed wmode="transparent" width="180" height="335" src="http://dajiamazu.events.pixnet.net/sticker.swf" /><br><input type="hidden" id="copy_text" value='&lt;embed wmode=&quot;transparent&quot; width=&quot;180&quot; height=&quot;335&quot; src=&quot;http://dajiamazu.events.pixnet.net/sticker.swf&quot; /&gt;'><input type="button" value="點我複製" id="d_clip_button"></center>    </div>

 

 

arrow
arrow
    全站熱搜

    早起向日葵 發表在 痞客邦 留言(0) 人氣()