 |
|
|  |
Æ˾÷À» ½ÇÇà ÈÄ ÁöÁ¤µÈ ½Ã°£¸¸Å Ä«¿îÆ® ÈÄ ÀÚµ¿À¸·Î ´Ý½À´Ï´Ù. |
|
|
 |
16³â Àü |
<HTML>
<HEAD>
<title>http://www.xtx.kr</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
var TimeOut = 5; // Æ˾÷⠴ݱâ Ä«¿îÆ® ½Ã°£ ÁöÁ¤
var TimeRemain = 0;
var RefreshRate = 1;
var ChildWin = null;
function TimedPopup(url)
{
windowprops = "left=250,top=250,width=200,height=200"; // May be adjusted according to your needs
if (ChildWin)
return false;
ChildWin = window.open(url, "ChildWin", windowprops);
ResetTimer();
if (TimeOut && RefreshRate)
setTimeout("CheckClose();",RefreshRate * 1000);
}
function ResetTimer()
{
TimeRemain = TimeOut;
document.form1.field1.value = TimeRemain; // For demo purposes only (May be removed)
}
function CheckClose()
{
TimeRemain -= (RefreshRate);
if (TimeRemain > 0)
{
if (ChildWin && ChildWin.closed)
{
document.form1.field1.value = TimeOut; // For demo purposes only (May be removed)
ChildWin = null;
}
else
if (ChildWin)
{
document.form1.field1.value = TimeRemain; // For demo purposes only (May be removed)
setTimeout("CheckClose();",RefreshRate * 1000);
}
}
else
if (ChildWin)
{
document.form1.field1.value = TimeOut; // For demo purposes only (May be removed)
if (ChildWin.closed)
ChildWin = null;
else
{
ChildWin.close();
ChildWin = null;
}
}
}
//-->
</script>
</HEAD>
<BODY onUnload="if (ChildWin){ChildWin.close()};">
<div align="center">
<form name="form1" method="post" action="">
<input type="button" name="Submit" value="Show Popup" onClick="TimedPopup('http://www.blueb.co.kr/SRC/javascript/popup.html');">
<br><br>
Time Remaining: <input type="text" name="field1" size="4">
</form>
</div>
|
|
̵̧ : 240 |
̵̧
¸ñ·Ï
|
|
|  |
|