日期:2014-05-16 浏览次数:20359 次
<script type="text/javascript">
function copymagnet()
{
var a = document.getElementsByTagName("a");
var s = "";
for(var i=0, l = a.length; i < l; ++i)
if(a[i].href.indexOf("magnet:")==0)
s += a[i].href+"\n";
window.clipboardData.setData("Text",s);
alert("复制完成");
}
</script>
<input type="button" value="复制" onclick="copymagnet()" />