1. 下载clippy.swf
2. 复制代码
[b][color=red]注意:
span id 等于 object 的 FlashVars value id[/color][/b]
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=©to=" />
<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=©to=" bgcolor="#FFFFFF" wmode="opaque" />
</object>
</span>
[b][color=red]注意:
span id 等于 object 的 FlashVars value id[/color][/b]