欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

添加复制到剪切板 flash 按钮

程序员文章站 2022-05-15 23:34:38
...
1. 下载clippy.swf
    mkdir public/flashs
cd public/flashs
wget https://d3nwyuy0nl342s.cloudfront.net/flash/clippy.swf


2. 复制代码
<span id="clippy_value">复制内容</span>
<span class="clippy-tooltip" title="复制到剪切板">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="14" height="14" class="clippy" class="clippy">
<param name="movie" value="/flashs/clippy.swf" />
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="id=clippy_value&copied=&copyto=" />
<param name="bgcolor" value="#FFFFFF"/>
<param name="wmode" value="opaque" />
<embed src="/flashs/clippy.swf" width="14" height="14" name="clippy" quality="high"
allowscriptaccess="always" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="id=clippy_value&copied=&copyto=" bgcolor="#FFFFFF" wmode="opaque" />
</object>
</span>


[b][color=red]注意:
span id 等于 object 的 FlashVars value id[/color][/b]
相关标签: Flash Java .net