<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>제목 없음</title>
<script type="text/javascript" language="javascript">
siteTitle = "sexybear.tistory.com";
function CopyContent()
{
if (window.event)
{
window.event.returnValue = true;
window.setTimeout('PlusSiteTitle()', 25);
}
}
function PlusSiteTitle()
{
alert(window.clipboardData.getData('Text'));
if (window.clipboardData) // IE
{
var clipData = window.clipboardData.getData('Text');
clipData = clipData + '\r\n(출처 : \'' + siteTitle+'\' - ^^ ;;)\r\n' ;
var copyResult = window.clipboardData.setData('Text', clipData);
//document.getElementById('divR').innerText = '<br>' + copyResult + '<br>' + window.clipboardData.getData('Text');
}
}
</script>
</head>
<body>
<form id="form1">
<div>
<div id='contents_area' oncopy='javascript:CopyContent();'>
1<br />
2<br />
3<br />
4<br />
5<br />
</div>
<hr />
<div id="divR">
</div>
</div>
</form>
</body>
</html>