JavaScript È°¿ëÆÁ
2009.08.01 / 02:48
À¥ÆäÀÌÁö ½ºÅ©·¦½Ã Ãâóǥ±â Ŭ¸³º¸µå Ãß°¡ javascript - º¹»ç±ÝÁö ÀúÀÛ±Ç Ç¥½Ã
ÀÌÀûº»Ã³
Ãßõ ¼ö 140
À¥ÆäÀÌÁö
½ºÅ©·¦½Ã Ãâóǥ±â Ŭ¸³º¸µå Ãß°¡ javascript - º¹»ç ±ÝÁö
www.wssplex.net
´ÙÀ½ ½ºÅ©¸³Æ®´Â, À¥ÆäÀÌÁö¸¦ ½ºÅ©·¦Çؼ ´Ù¸¥°÷¿¡ º¹»çÇÒ
°æ¿ì º¹»çµÈ ³»¿ë¿¡ º°µµÀÇ ³»¿ëÀ» Ãß°¡ÇÏ´Â javascript ÀÔ´Ï´Ù. ¼Ò½º´Â °£´ÜÇÕ´Ï´Ù.
Ãß°¡ÇÑ ³»¿ëÁß¿¡, document.URL ´Â ÇØ´ç À¥ÆäÀÌÁöÀÇ ÁÖ¼Ò¸¦ °¡Á®¿É´Ï´Ù.
Ãâó: http://www.phpschool.com/
http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=50797
<script language="javascript">
// Clipboard Copy Alert
function contents_cp()
{
if (window.event)
{
window.event.returnValue = true;
window.setTimeout('attach_kinref()', 25);
}
}
function attach_kinref()
{
if (window.clipboardData) // IE
{
// get data from clipboard
var txt = window.clipboardData.getData('Text');
// attach the source at the end of text
txt = txt + '\r\n\r\n½ºÅ©·¦¿øº»±Û: ' + document.URL + '\r\n' +
'ÃâóÀ¥»çÀÌÆ®: ¼¹öÁÖ¹«¸£±â[Serverinfo.pe.kr], http://www.serverinfo.pe.kr/\r\n' +
'Windows Server, IIS, SQL Server, Exchagne Server ÆÁ¾ØÅ×Å©, QnA °Ô½ÃÆÇ';
// set data to clibboard
var result = window.clipboardData.setData('Text', txt);
}
}
</script>
<body oncopy="contents_cp();">
ÀÌ ³»¿ëÀ» Ŭ¸³º¸µå¿¡ º¹»çÇؼ ¿¡µðÅÍ¿¡ ºÙ¿©³Ö±â Çغ¸¼¼¿ä
</body>
// Clipboard Copy Alert
function contents_cp()
{
if (window.event)
{
window.event.returnValue = true;
window.setTimeout('attach_kinref()', 25);
}
}
function attach_kinref()
{
if (window.clipboardData) // IE
{
// get data from clipboard
var txt = window.clipboardData.getData('Text');
// attach the source at the end of text
txt = txt + '\r\n\r\n½ºÅ©·¦¿øº»±Û: ' + document.URL + '\r\n' +
'ÃâóÀ¥»çÀÌÆ®: ¼¹öÁÖ¹«¸£±â[Serverinfo.pe.kr], http://www.serverinfo.pe.kr/\r\n' +
'Windows Server, IIS, SQL Server, Exchagne Server ÆÁ¾ØÅ×Å©, QnA °Ô½ÃÆÇ';
// set data to clibboard
var result = window.clipboardData.setData('Text', txt);
}
}
</script>
<body oncopy="contents_cp();">
ÀÌ ³»¿ëÀ» Ŭ¸³º¸µå¿¡ º¹»çÇؼ ¿¡µðÅÍ¿¡ ºÙ¿©³Ö±â Çغ¸¼¼¿ä
</body>
Ãß°¡ÇÑ ³»¿ëÁß¿¡, document.URL ´Â ÇØ´ç À¥ÆäÀÌÁöÀÇ ÁÖ¼Ò¸¦ °¡Á®¿É´Ï´Ù.
Ãâó: http://www.phpschool.com/
http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=50797