ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î

Æ˾÷â °ü·Ã ÀÚ¹Ù½ºÅ©¸³Æ®
9³â Àü
1. ¿É¼ÇÀ» HEAD¾È¿¡...
<script language="JavaScript">
function openNewWindow(window) {
open (window,"NewWindow","left=0, top=0, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=200, height=200");
}
</script>
<a href=javascript:openNewWindow("ÁÖ¼ÒÀÔ·Â")>»õâ¿­±â</a>

2. ¸µÅ©¿¡ ¿É¼ÇÀ» ÁöÁ¤...
<a href="javascript:;" onclick="window.open('ÁÖ¼ÒÀÔ·Â','name','resizable=no width=200 height=200');return false">»õâ¿­±â</a>

* ¿É¼Ç *
»õ⠶ٿﶧ ¿ëµµ¿¡ ¸Â°Ô ¿É¼Ç ¼³Á¤À» ÇØÁÝ´Ï´Ù. "YES" ¶Ç´Â "NO" ·Î ÁöÁ¤ ÇØÁÖ¸é µË´Ï´Ù.
menubar - ÆÄÀÏ, ÆíÁý, º¸±â....ºÎºÐ
toolbar - µÚ·Î, ¾ÕÀ¸·Î, »õ·Î°íħ ¾ÆÀÌÄܵîÀÌ ÀÖ´Â ºÎºÐ
directories - ¿¬°á µð·ºÅ丮°¡ Ç¥½ÃµÇ´Â ºÎºÐ
location - ÁÖ¼Ò ÀÔ·Ââ
status - ¾Æ·¡ ºê¶ó¿ìÀú »óÅ ¹Ù
scrollbars - ½ºÅ©·Ñ
resizable - ¸®»çÀÌÁî ¿É¼Ç



1.ÀÚµ¿ ¶ç¿ì±â

Æ˾÷â¿¡ »ðÀÔ
<html>
<head>
<title></title>
<script language="javascript">
<!--
function pop(){
window.open("Æ˾÷âÆÄÀÏ", "pop", "width=400,height=500,history=no,resizable=no,status=no,scrollbars=yes,menubar=no")
}
//-->
</script>
</head>
<body onload="javascript:pop()">
À̺¥Æ® Æ˾÷âÀ» ¶ç¿ì±â
</body>
</html>  


2.ÇÁ·¹ÀÓÀÌ ÀÖ´Â Æ˾÷⠴ݱâ

Æ˾÷â¿¡ »ðÀÔ
<html>
<head>
<title></title>
<script language="Javascript">
<!--
function frameclose() {
parent.close()
window.close()
self.close()
}
//-->
</script>
</head>
<body>
<a href="javascript:frameclose()">ÇÁ·¹ÀӼ Çѹ濡 ´Ý±â</a>
</body>
</html>


3.Æ˾÷â ´Ý°í ÇÁ·¹ÀÓÀÌ ¾ø´Â ºÎ¸ðâ¿¡¼­ ¿øÇÏ´Â ÆäÀÌÁö·Î À̵¿Çϱâ

Æ˾÷â¿¡ »ðÀÔ
<html>
<head>
<title></title>
<script language="javascript">
<!--
function MovePage() {
window.opener.top.location.href="¿¬°áÇÒÆÄÀÏ"
window.close()
}
//-->
</script>
</head>
<body>
<a href="javascript:MovePage();">ÀÚ¼¼Çѳ»¿ëº¸±â</a>
</body>
</html>


4.Æ˾÷â ´Ý°í ÇÁ·¹ÀÓÀÌ ÀÖ´Â ºÎ¸ðâ¿¡¼­ ¿øÇÏ´Â ÆäÀÌÁö·Î À̵¿Çϱâ

Æ˾÷â¿¡ »ðÀÔÇÏ°í Æ˾÷âÀÇ ¼³Á¤Àº ÇÁ·¹ÀӼ ÆäÀÌÁö¿¡ ÇؾßÇÔ
¿ÀÇÂâÀÌ ¾Æ´Ò°æ¿ì¿¡´Â window.top.ÇÁ·¹ÀÓÀ̸§.location.href="¿¬°áÇÒÆÄÀÏ" Àû¿ëÇÑ´Ù
<html>
<head>
<title></title>
<script language="javascript">
<!--
function MovePage() {
window.opener.top.ÇÁ·¹ÀÓÀ̸§.location.href="¿¬°áÇÒÆÄÀÏ"
//Æ˾÷âÀÌ ¾Æ´Ñ°Í¿ì..
window.close()
}
//-->
</script>
</head>
<body>
<a href="javascript:MovePage();">ÀÚ¼¼Çѳ»¿ëº¸±â</a>
</body>
</html>


5.Æ˾÷â ÀÚµ¿À¸·Î ´Ý±â

Æ˾÷â¿¡ »ðÀÔ
<html>
<head>
<title>Close Window Timer</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
<!--
function closeWin(thetime) {
setTimeout("window.close()", thetime); //1000 Àº 1Ãʸ¦ ÀǹÌÇÕ´Ï´Ù.
}
//-->
</script>
</head>
<body onLoad="closeWin('5000')">
ÀÌâÀº 5ÃÊÈÄ ÀÚµ¿À¸·Î âÀÌ ´ÝÈû´Ï´Ù.<br>
</body>
</html>


6.ÇÁ·¹ÀÓ ³ª´« Æ˾÷â Çѹø¿¡ ´Ý±â

Æ˾÷â¿¡ »ðÀÔ
<html>
<head>
<title>Close Window Timer</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
<!--
function closeWin(thetime) {
setTimeout("window.close()", thetime); //1000 Àº 1Ãʸ¦ ÀǹÌÇÕ´Ï´Ù.
}
//-->
</script>
</head>
<body onLoad="closeWin('5000')">
ÀÌâÀº 5ÃÊÈÄ ÀÚµ¿À¸·Î âÀÌ ´ÝÈû´Ï´Ù.<br>
</body>
</html>


7.ÇϷ絿¾È Æ˾÷â ¶ç¿ìÁö ¾Ê±â ¼Ò½º ¿¹Á¦1

ºÎ¸ðâÀÎ index.htm¿¡ »ðÀÔ
<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="javascript">
<!--
function getCookie(name)
{
var Found = false
var start, end
var i = 0
// cookie ¹®ÀÚ¿­ Àüü¸¦ °Ë»ö
while(i <= document.cookie.length)
{
start = i
end = start + name.length
// name°ú µ¿ÀÏÇÑ ¹®ÀÚ°¡ ÀÖ´Ù¸é
if(document.cookie.substring(start, end) == name)
{
Found = true
break
}
i++
}
// name ¹®ÀÚ¿­À» cookie¿¡¼­ ã¾Ò´Ù¸é
if(Found == true) {
start = end + 1
end = document.cookie.indexOf(";", start)
// ¸¶Áö¸· ºÎºÐÀ̶ó ´Â °ÍÀ» ÀǹÌ(¸¶Áö¸·¿¡´Â ";"°¡ ¾ø´Ù)
if(end < start)
end = document.cookie.length
// name¿¡ ÇØ´çÇÏ´Â value°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏÇÑ´Ù.
return document.cookie.substring(start, end)
}
// ãÁö ¸øÇß´Ù¸é
return ""
}
function openMsgBox()
{
var eventCookie=getCookie("memo");
if (eventCookie != "no")
window.open('Æ˾÷âÆÄÀÏ','_blank','width=300,height=300,top=50,left=150');
//Æ˾÷âÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀο¡ ÀÖ¾î¾ß ÇÑ´Ù.
}
openMsgBox();
//-->
</script>
</head>
<body>
</body>
</html>


Æ˾÷âÀÎ pop.htm¿¡ »ðÀÔ
<html>
<head>
<title></title>
<head>
<script language="JavaScript">
<!--
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin()
{
if ( document.myform.event.checked )
setCookie("memo", "no" , 1); // 1ÀÏ °£ ÄíÅ°Àû¿ë

}
//-->
</script>
</head>
<body onunload="closeWin()">
<form name="myform">
<input type="checkbox" name="event">´ÙÀ½ºÎÅÍ ÀÌ Ã¢À» ¿­Áö¾ÊÀ½
<input type=button value="´Ý±â" onclick="self.close()">
</form>
</body>
</html>


8.ÇϷ絿¾È Æ˾÷â ¶ç¿ìÁö ¾Ê±â ¼Ò½º ¿¹Á¦2

ºÎ¸ðâÀÎ index.htm¿¡ »ðÀÔ
<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function change(form)
{
if (form.url.selectedIndex !=0)
parent.location = form.url.options[form.url.selectedIndex].value
}
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function getCookie( name )
{
var nameOfCookie = name + "=";
var x = 0;
while ( x <= document.cookie.length )
{
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}
if ( getCookie( "Notice" ) != "done" )
{
noticeWindow = window.open('pop.htm','notice','toolbar=no,location=no,directories=no,status=no,
menubar=no,scrollbars=no, resizable=no,width=400,height=400');
//winddow.openÀÇ ()ÀÇ °ÍÀº ÇÑÁÙ¿¡ °è¼Ó ºÙ¿©½á¾ß ¿À·ù°¡ ¾È³², Áٹٲî¸é ¿À·ù³²
noticeWindow.opener = self;
}
//-->
</script>
</head>
<body>
</body>
</html>


Æ˾÷âÀÎ pop.htm¿¡ »ðÀÔ
<html>
<head>
<title></title>
<head>
<SCRIPT language="JavaScript">
<!--
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}


function closeWin()
{
if ( document.forms[0].Notice.checked )
setCookie( "Notice", "done" , 1);
self.close();
}
//-->
</script>
</head>
<body onunload="closeWin()">
<form>
<input type=CHECKBOX name="Notice" value="">´Ù½Ã Æ˾÷ ¾È¶ä
<a href="javascript:window.close()">´Ý±â</a>
</form>
</body>
</html>


9.°°Àº ºê¶ó¿ìÁ®¿¡¼­ Æ˾÷ ¶ç¿ì±â ¾Ê±â

ºÎ¸ðâÀÎ index.htm¿¡ »ðÀÔ
<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="javascript">
<!--
function getCookie(name)
{
var Found = false
var start, end
var i = 0
// cookie ¹®ÀÚ¿­ Àüü¸¦ °Ë»ö
while(i <= document.cookie.length)
{
start = i
end = start + name.length
// name°ú µ¿ÀÏÇÑ ¹®ÀÚ°¡ ÀÖ´Ù¸é
if(document.cookie.substring(start, end) == name)
{
Found = true
break
}
i++
}
// name ¹®ÀÚ¿­À» cookie¿¡¼­ ã¾Ò´Ù¸é
if(Found == true) {
start = end + 1
end = document.cookie.indexOf(";", start)
// ¸¶Áö¸· ºÎºÐÀ̶ó ´Â °ÍÀ» ÀǹÌ(¸¶Áö¸·¿¡´Â ";"°¡ ¾ø´Ù)
if(end < start)
end = document.cookie.length
// name¿¡ ÇØ´çÇÏ´Â value°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏÇÑ´Ù.
return document.cookie.substring(start, end)
}
// ãÁö ¸øÇß´Ù¸é
return ""
}
function openMsgBox()
{
var eventCookie=getCookie("memo");
if (eventCookie != "no")
window.open('Æ˾÷âÆÄÀÏ','_blank','width=300,height=300,top=50,left=150');
//Æ˾÷âÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀο¡ ÀÖ¾î¾ß ÇÑ´Ù.
}
openMsgBox();
//-->
</script>
</head>
<body>
</body>
</html>


Æ˾÷âÀÎ pop.htm¿¡ »ðÀÔ
<html>
<head>
<title></title>
<head>
<script language="JavaScript">
<!--
function setCookie( name, value, expiredays )
{
//°°Àº â¿¡¼­¸¸ ¾È¶ç¿ò.
//expiredays °ªÀº »ó°ü¾øÀ½.
document.cookie = name + "=" + escape( value ) + "; path=/;";
function closeWin()
{
if ( document.myform.event.checked )
setCookie("memo", "no" , 1); // 1ÀÏ °£ ÄíÅ°Àû¿ë

}
//-->
</script>
</head>
<body onunload="closeWin()">
<form name="myform">
<input type="checkbox" name="event">´ÙÀ½ºÎÅÍ ÀÌ Ã¢À» ¿­Áö¾ÊÀ½
<input type=button value="´Ý±â" onclick="self.close()">
</form>
</body>
</html>


10.Æ˾÷â °¡¿îµ¥¿¡ ÀÚµ¿¶ç¿ì±â

Æ˾÷â¿¡ »ðÀÔ
<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
<!--
function winCentre() {
if (document.layers) {
var sinist = screen.width / 2 - outerWidth / 2;
var toppo = screen.height / 2 - outerHeight / 2;
} else {
var sinist = screen.width / 2 - document.body.offsetWidth / 2;
var toppo = -75 + screen.height / 2 - document.body.offsetHeight / 2;
}
self.moveTo(sinist, toppo);
}
//-->
</script>
</head>
<body onLoad="winCentre()">
</body>
</html>  


11.ºÎ¸ðâ¿¡¼­ Ŭ¸¯Çϸé Æ˾÷â °¡¿îµ¥¿¡ ¶ç¿ì±â

ºÎ¸ðâ¿¡ »ðÀÔ
<html>
<head>
<title></title>
<head>
<script language="JavaScript">
<!--
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',
resizable'
win = window.open(mypage,myname,settings)
}
//-->
</script>
<body>
<a href="Æ˾÷âÆÄÀÏ" onclick="NewWindow(this,'name','100','100','yes');return false">
¸µÅ©</a>
</body>
</html>


12.°°Àº ºê¶ó¿ìÁ®¿¡¼­¸¸ Æ˾÷ ¶ç¿ì±â ¾Ê±â

ºÎ¸ðâÀÎ index.htm¿¡ »ðÀÔ _»õ·Î ºê¶ó¿ìÁ®¸¦ ¿­¸é Æ˾÷âÀÌ ¶ä
<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="javascript">
<!--
function getCookie(name)
{
var Found = false
var start, end
var i = 0
// cookie ¹®ÀÚ¿­ Àüü¸¦ °Ë»ö
while(i <= document.cookie.length)
{
start = i
end = start + name.length
// name°ú µ¿ÀÏÇÑ ¹®ÀÚ°¡ ÀÖ´Ù¸é
if(document.cookie.substring(start, end) == name)
{
Found = true
break
}
i++
}
// name ¹®ÀÚ¿­À» cookie¿¡¼­ ã¾Ò´Ù¸é
if(Found == true) {
start = end + 1
end = document.cookie.indexOf(";", start)
// ¸¶Áö¸· ºÎºÐÀ̶ó ´Â °ÍÀ» ÀǹÌ(¸¶Áö¸·¿¡´Â ";"°¡ ¾ø´Ù)
if(end < start)
end = document.cookie.length
// name¿¡ ÇØ´çÇÏ´Â value°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏÇÑ´Ù.
return document.cookie.substring(start, end)
}
// ãÁö ¸øÇß´Ù¸é
return ""
}
function openMsgBox()
{
var eventCookie=getCookie("memo");
if (eventCookie != "no")
window.open('Æ˾÷âÆÄÀÏ','_blank','width=300,height=300,top=50,left=150');
//Æ˾÷âÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀο¡ ÀÖ¾î¾ß ÇÑ´Ù.
}
openMsgBox();
//-->
</script>
</head>
<body>
</body>
</html>  


Æ˾÷âÀÎ pop.htm¿¡ »ðÀÔ
<html>
<head>
<title></title>
<head>
<script language="JavaScript">
<!--
function setCookie( name, value, expiredays )
{
//°°Àº â¿¡¼­¸¸ ¾È¶ç¿ò.
//expiredays °ªÀº »ó°ü¾øÀ½.
document.cookie = name + "=" + escape( value ) + "; path=/;";
}
function closeWin()
{
if ( document.myform.event.checked )
setCookie("memo", "no" , 1); // 1ÀÏ °£ ÄíÅ°Àû¿ë
}
//-->
</script>
</head>
<body onunload="closeWin()">
<form name="myform">
<input type="checkbox" name="event">´ÙÀ½ºÎÅÍ ÀÌ Ã¢À» ¿­Áö¾ÊÀ½
<input type=button value="´Ý±â" onclick="self.close()">
</form>
</body>
</html>


13.¸µÅ©°É¾î¼­ ÁöÁ¤µÈ »çÀÌÁî·Î ¿­±â

<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language='JavaScript'>
<!--
function winopen(url)
{
window.open(url,"url","width=517,height=450,history=no,resizable=no,status=no,
scrollbars=yes,menubar=no");
}
//-->
</script>
</head>
<body>
<a HREF="javascript:winopen('ÁÖ¼Ò')">¸µÅ©°É±â</a>
</body>
</html>


14.ÀÚµ¿À¸·Î ÁöÁ¤µÈ Å©±â·Î ºê¶ó¿ìÀú ¿­±â

<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language='JavaScript'>
<!--
window.resizeTo(300,300);
window.moveTo(0,0);
//-->
</script>
</head>
<body>
<!--¿øÇÏ´Â °¡·Î,¼¼·ÎÀÇ Å©±â¸¦ ÀÔ·ÂÇØÁØ´Ù.-->
</body>
</html>


15.Çػ󵵿¡ ¸ÂÃß¾î ÀüüÀåÀ¸·Î ´Ã¾î³²

<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
function winMaximizer() {
if (document.layers) {
larg = screen.availWidth - 10;
altez = screen.availHeight - 20;
} else {
var larg = screen.availWidth;
var altez = screen.availHeight;
}
self.resizeTo(larg, altez);
self.moveTo(0, 0);
}
</script>
</head>
<body onload="winMaximizer()">
Çػ󵵿¡ ¸ÂÃß¾î ÀüüÀåÀ¸·Î ´Ã¾î³²
</body>
</html>


16.À̹ÌÁö Ŭ¸¯½Ã html¹®¼­¾øÀÌ Å«À̹ÌÁö·Î »õâ¶ç¿ì±â

<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
var win1Open = null
function displayImage(picName, windowName,
windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,

scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15))
} function winClose(){
if(win1Open != null) win1Open.close()
} function doNothing(){}
</script> <script language="JavaScript1.1">
function displayImage(picName, windowName,

windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,

resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>Picture</title></head>"
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0
alt=´Ý±â></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
}
if(winHandle != null) winHandle.focus()
return winHandle
}
</script>
</head>
<body>
<a href="javascript:doNothing()"
onClick="win1Open=displayImage('Å« À̹ÌÁöÆÄÀÏ', 'popWin1', '300', '400')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''">
<img src=À̹ÌÁöÆÄÀÏ" border="0"></a>
</body>
</html>


17.¸îÃÊÈÄ À¥ÆäÀÌÁöÀ̵¿Çϱ⠼ҽº¿¹Á¦1

<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
function nextWin()
{location = "À̵¿ÇÒ URL"}
</script>
</head>
<body onLoad="setTimeout('nextWin()', 1000)"> <!--1000 ÀÌ 1ÃÊ ÀÔ´Ï´Ù.-->
¹Ù·Î À̵¿ÇÑ ¿øÇÏ´Â »çÀÌÆ®·Î À̵¿ÇÔ
</body>
</html>


18.¸îÃÊÈÄ À¥ÆäÀÌÁöÀ̵¿Çϱ⠼ҽº¿¹Á¦2

<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
self.location.replace('À̵¿ÇÒ URL');
</script>
</head>
<body>
¹Ù·Î À̵¿ÇÑ ¿øÇÏ´Â »çÀÌÆ®·Î À̵¿ÇÔ
</body>
</html>


19.ÀÚµ¿»õ·Î°íħÇϱâ

<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
<!--
setTimeout("history.go(0);", 3000); // 1ÃÊ´Â 1000 ÀÔ´Ï´Ù.
-->
</script>
</head>
<body>
ÀÚµ¿»õ·Î°íħÇϱâ
</body>
</html>


20.Çػ󵵿¡ µû¶ó ´Ù¸¥ À¥ÆäÀÌÁö ¿­±â

<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
<!--
function redirectPage() {
var url800x600 = "main1.html"; //800*600 ¿¡¼­ ¿­¸±¹®¼­
var url1024x768 = "main2.html"; //1024*768 ¿¡¼­ ¿­¸±¹®¼­
var url1152x864 = "main3.html"; //1152*864 ¿¡¼­ ¿­¸±¹®¼­

if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else if ((screen.width == 1152) && (screen.height == 864))
window.location.href= url1152x864;
else window.location.href= url800x600;
}
//-->
</script>
</head>
<body Onload="redirectPage()">  
</body>
</html>


30.HTMLÆÄÀÏ ¾øÀÌ À̹ÌÁö »çÀÌÁî¿¡ ¸Â°Ô Æ˾÷â ¶ç¿ì±â.
<script Language="Javascript">
<!-- //////////////////////////////////////////////////////////////
//*****************************************************************
// Web Site: http://www.CginJs.Com
// CGI ¿Í JavaScript°¡ ¸¸³µÀ» ¶§ = C.n.J ¢Ñ http://www.CginJs.Com
// CGI ¿Í JavaScript°¡ ¸¸³µÀ» ¶§ = C.n.J ¢Ñ webmaster@CginJs.Com
// C.n.J ÀÚ¹Ù½ºÅ©¸³Æ® ÀÚµ¿ »ý¼º ¸¶¹ý»ç ¢Ñ http://www.CginJs.Com
// C.n.J ÀÚ¹Ù½ºÅ©¸³Æ®(JavaScript) °¡ÀÌµå ¢Ñ http://www.CginJs.Com
// C.n.J CSS(Cascading Style Sheet) °¡ÀÌµå ¢Ñ http://www.CginJs.Com
// Editer : Web Site: http://www.CginJs.Com
//*****************************************************************
/////////////////////////////////////////////////////////////// -->
var cnj_img_view = null;
function cnj_win_view(img){
img_conf1= new Image();
img_conf1.src=(img);
cnj_view_conf(img);
}

function cnj_view_conf(img){
if((img_conf1.width!=0)&&(img_conf1.height!=0)){
cnj_view_img(img);
} else {
funzione="cnj_view_conf('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}

function cnj_view_img(img){
if(cnj_img_view != null) {
if(!cnj_img_view.closed) { cnj_img_view.close(); }
}
cnj_width=img_conf1.width+20;
cnj_height=img_conf1.height+20;
str_img="width="+cnj_width+",height="+cnj_height;
cnj_img_view=window.open(img,"cnj_img_open",str_img);
cnj_img_view.focus();
return;
}
</script>


<a href="javascript:cnj_win_view('../img/cnjlogo.gif')"><img src="../img/cnjlogo.gif" border="0" width="247" height="55"></a>

32.À̹ÌÁö»çÀÌÁî¿¡ ¸Â°Ô »õâÀÌ ¿­¸®¸ç ÈÙ¸¶¿ì½º È¿°ú¸¦ ³»ÁÜ
±×¸®°í ¸ÞÀÎ(imgmove-main.html)¿¡¼­ »õâ ¶ç¿öÁÖ´Â ºÎºÐ

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function cnjOpen() {
window.open('img-move.html','cnjOpenWin','width=350,height=250,toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0');
}
// End -->
</script>
<a href="javascript:cnjOpen()"><img src="test.jpg" width="200" height="150" border="0"></a>
</center>

ÀÌ ºÎºÐÀº À̹ÌÁö¸¦ º¸¿©ÁÙ »õâ(img-move.html)ÀÔ´Ï´Ù.
<style>
body {cursor:move;}
</style>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad="fitWindowSize();">

<SCRIPT LANGUAGE="JavaScript">
// À̹ÌÁö´Â º°µµ·Î Á¦°øÇÏÁö ¾Ê½À´Ï´Ù.
<!-- CGI ¿Í JavaScript°¡ ¸¸³µÀ» ¶§=CnJ ¢Ñ http://www.cginjs.com -->
<!-- CGI ¿Í JavaScript°¡ ¸¸³µÀ» ¶§=CnJ ¢Ñ webmaster@cginjs.com -->
var ie = 1;
var windowX, windowY;
var bLargeImage = 0;
var x,y;

var InitX = 500;

// À̹ÌÁö°¡ »õâ¿¡ ¸Â°Ô Á¶ÀýµÇ´Â ºÎºÐ

function fitWindowSize()
{
if( ie )
{
window.resizeTo( InitX, InitX );
width = InitX - (document.body.clientWidth - document.images[0].width);
height = InitX - (document.body.clientHeight - document.images[0].height);
windowX = (window.screen.width-width)/2;
windowY = (window.screen.height-height)/2;
if( width > screen.width-50 )
{
width = screen.width-50;
windowX = 20;
bLargeImage = 1;
}
if( height > screen.height-80 )
{
height = screen.height-80;
windowY = 20;
bLargeImage = 1;
}
window.moveTo( windowX, windowY );
window.resizeTo( width, height+4 );
}
else
{
window.innerWidth = document.layers[0].document.images[0].width;
window.innerHeight = document.layers[0].document.images[0].height;
}
}

// ÈÙ¸¶¿ì½º È¿°ú

function move() {
if(bLargeImage){ window.scroll(window.event.clientX - 50,window.event.clientY -50);
}
}

// ¿À¸¥ÂÊ ¿ÞÂÊ ¸¶¿ì½º Ŭ¸¯½Ã â´Ý´Â ºÎºÐ

function click() {
if ((event.button==1) || (event.button==2) || (event.button==3)) {
top.self.close();
}
}
document.onmousedown=click

</script>
<img src="test.jpg" border="0" ONMOUSEMOVE="move();">
ÃßõÃßõ : 353 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
2,585
HTTP Content-Type Á¤¸®
2,584
PHP ¿¡¼­ ³¯Â¥ Ãâ·ÂÇÒ¶§ »ç¿ëÇÏ´Â ÇÔ¼ö.
Æ˾÷â °ü·Ã ÀÚ¹Ù½ºÅ©¸³Æ®
2,582
PHP ³¯Â¥/½Ã°£ Á¤¸®
2,581
±ò²ûÇÑ À¥¿ë ½Ã°è´Þ·Â
2,580
PHP¿¡¼­ ¿ø°Ý À̹ÌÁöÀÇ À¯È¿¼ºÀ» üũÇÏ´Â ¹æ¹ý
2,579
Use kakaolink on Android WebView
2,578
Á¤±Ô½Ä ¹®¹ý
2,577
ÇѱÛ, ¿µ¹®, ¼ýÀÚ, Ư¼ö¹®ÀÚ Ã¼Å©ÇÏ´Â ÇÔ¼ö
2,576
ÀÚÁÖ ¾²ÀÌ´Â Á¤±ÔÇ¥Çö½Ä ¸ðÀ½
2,575
[ÀÚ¹Ù½ºÅ©¸³Æ®] ½Ç½Ã°£ ½Ã°è ¸¸µé±â
2,574
¸ð¹ÙÀÏ À¥ÆäÀÌÁö CSS - emÀ» pxó·³ ÆíÇÏ°Ô »ç¿ëÇÏ´Â ¹æ¹ý
2,573
[html5] audio ű׷ΠÀ½¾Ç ÆÄÀÏ »ðÀÔ
2,572
±¸±Û ¾Öµå¼¾½º ÇѱÛ, Çѱ¹ ±¤°í ³ª¿À°Ô ¸¸µé±â
2,571
±Ã±ØÀÇ ¾ÆÀÌÇÁ·¹ÀÓ ³ôÀÌ ÀÚµ¿ Á¶Àý
2,570
PHP·Î Internet Explorer ¹öÀü ¾Ë¾Æ³»±â
2,569
PHP·Î À̹ÌÁö ÁÖ¼Ò ¼û±â±â
2,568
À¯Åõºê ÁÖ¼Ò¿¡¼­ ¾ÆÀ̵𸸠»Ì¾Æ¿À±â
2,567
preg_match_all ¸ÆÁÖ¼Ò ÃßÃâ
2,566
URL¿¡¼­ µµ¸ÞÀθ¸ ÃßÃâÇϱâ
2,565
¸ÞŸÅ±׸¦ ÃßÃâÇØÁÖ´Â get_meta_tags ÇÔ¼ö
2,564
PHP Á¤±Ô½ÄÀ» È°¿ëÇÑ ÅÂ±× ¹× ƯÁ¤ ¹®ÀÚ¿­ Á¦°Å ¹× ÃßÃâ ¹æ¹ý
2,563
preg_match
2,562
À̹ÌÁö Å©±â¸¦ ºñÀ²¿¡ ¸Â°Ô Á¶ÀýÇÑ´Ù.
2,561
$_REQUEST - GET¹æ½Ä,POST¹æ½Ä ±¸ºÐÇÏÁö ¾Ê°í °ª ¹Þ±â
2,560
<UL><LI>¸¦ ÀÌ¿ëÇÑ °¡·ÎÁ¤·Ä ¸Þ´º ¸¸µé±â
2,559
Android KitKat (4.4) video autoplay does not work anymore in webview
2,558
°ü°è ¿¬»êÀÚ
2,557
º´ÇÕ ¿¬»êÀÚ
2,556
SUBSTR ÇÔ¼ö
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.