<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title> iexplorer firefox javascript </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
//copy
function cpIt(s){
if (window.clipboardData) {
window.clipboardData.setData("Text",s);
}
else
{
var flashcopier = 'flashcopier';
if(!document.getElementById(flashcopier)) {
var divholder = document.createElement('div');
divholder.id = flashcopier;
document.body.appendChild(divholder);
}
document.getElementById(flashcopier).innerHTML = '';
var divinfo = '<embed src="clipboard.swf" FlashVars="clipboard='+encodeURIComponent(s)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
document.getElementById(flashcopier).innerHTML = divinfo;
}
alert("\r
:"+s+"\r
\r
, !\r
\r
:(1) Ctrl+v 。\r
\r
(2) ");
}
</script>
</head><body>
<input type="text" name="idCopyText" id="idCopyText" value=" ..."><input type="button" value=" " onclick="cpIt(document.getElementById('idCopyText').value);">
</body></html>