½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 152 | Á¶È¸¼ö 2,852 | µî·ÏÀÏ 2003-12-20 11:35:18

´Ð³×ÀÓ

byhyun

À̸ÞÀÏ

byhyun74@hotmail.com

Á¦¸ñ

¿É¼ÇÀÌ Ãß°¡µÈ °è»ê±â¸¦ ¸¸µé°í ½Í½À´Ï´Ù.
³»¿ë

ÇØÇÇcgi À¯·áȸ¿øÀÔ´Ï´Ù. ¤Ñ_¤Ñ;

²À ¼Ò½º¸¦ ºÁÁֽʻç ÇÏ´Â °£ÀýÇÑ ºÎŹÀ» µå¸®±â À§Çؼ­ ...

 

²¿¿À¿À¿À¿Á µµ¿ÍÁÖ¼¼¿ä

¾Æ·¡´Â Á¦°¡ ¹æ¹ýÀ» ±¸Çϱâ À§Çؼ­ ´Ù¸¥°÷¿¡ Áú¹®À» ¿Ã¸° ³»¿ëÀÔ´Ï´Ù.

 

------------------------------------------------------------------------------------------

 

Á¦°¡ ¸¸µå´Â ȨÆäÀÌÁö¿¡ ¾Æ·¡ ÀûÀº°Å °°Àº °è»êÀÌ µÇ´Â°ÍÀ» ´Þ°í ½ÍÀºµ¥¿ä..
ÀÚ¹Ù½ºÅ©¸³Æ®¸¦ ¸ô¶ó¼­ ¾îÂîÇÒ¹Ù¸¦ ¸øÇÏ°í ÀÖ½À´Ï´Ù.

µµ¿òÀ» ºÎŹµå¸³´Ï´Ù.


--------------------------------------------------------------------------
±¹°¡¼±Åà : Çѱ¹,ÀϺ»,¹Ì±¹  (¶óµð¿À¹öÆ°)

½Ä»çºñ :  (             ) ¿ø,¿£,´Þ·¯     -   ÀÔ·ÂÆû
½Ä»çȽ¼ö : (          1 ) ȸ             - ±âº» 1·Î ÀԷµǾî ÀÖÀ¸¸ç, ¼öÁ¤°¡´É

±³Åëºñ : (          ) ¿ø,¿£,´Þ·¯      - ÀÔ·ÂÆû
µµ¼­°üÀÌ¿ë·á : (          ) ¿ø,¿£,´Þ·¯      - ÀÔ·ÂÆû
ÀÎÅͳݻç¿ë·á : Ç®´Ù¿î ¸Þ´º·Î ( 1½Ã°£, 2½Ã°£, 3½Ã°£, 4½Ã°£, 5½Ã°£ )       - ÀÔ·ÂÆû

°è»êÇϱâ, ÃʱâÈ­
--------------------------------------------------------------------------

ÀÌ·¸°Ô µÇ¾î ÀÖ´Â ÆûÀä

¸¶Áö¸·¿¡ °è»êÇϱ⸦ ´©¸£¸é, ÀüºÎ ÇÕÇÑ °ª¿¡
Çѱ¹Àº ÀÎÅͳݻç¿ë·á¸¦ ´õÇÑ°ªÀÌ Ãâ·ÂµÇ±¸¿ä
ÀϺ»Àº ÀÎÅͳݻç¿ë·á¸¦ ´õÇÑ°ª¿¡ X ȯÀ²(¹Ì¸® Á¤ÇسõÀº°Í)Àº ÇÕÀÌ Ãâ·ÂµÇ±¸¿ä
¹Ì±¹µµ ¸¶Âù°¡Áö·Î ÀÎÅͳݻç¿ë·á ´õÇÑ°ª¿¡ X ȯÀ²(¹Ì¸®Á¤ÇسõÀº°Í)ÀÇ ÇÕÀÌ Ãâ·ÂµË´Ï´Ù.

Ãâ·ÂÀº °è»ê±â »ó´ÜÀÇ ¼ýÀںκп¡ Ãâ·ÂÀÌ µÇ´Âµ¥¿ä.
±× Ãâ·Â°ªÀ» °¡Áö°í, ´õ °è»êÇÏ°í ½ÍÀ¸¸é ¾Æ·¡ °è»ê±â·Î Ãß°¡¸¦ Çؼ­ °è»êÇÏ´Â
°è»ê±â¿¡¿ä.



¾Æ·¡ °è»ê½Ã ½ºÅ©¸³Æ®¿¡ Ãß°¡ÇÏ¿©¼­ »ç¿ëÇÒ·Á°í Çϴµ¥¿ä ¸ð¸£°Ú½À´Ï´Ù.
µµ¿òÀ» Áֽñ⸦ °£ÀýÈ÷ ¹Ù¶ø´Ï´Ù.


<HTML>
<HEAD>
<TITLE> Jasko Sample Script </TITLE>

<!------- 1. ¾Æ·¡ÀÇ ½ºÅ©¸³Æ®¸¦ HEAD ºÎºÐ¿¡ º¹»çÇØ ³ÖÀ¸¼¼¿ä ----->


<style type="text/css">
<!--
body {font-family: helvetica}
p {font-size: 12pt}
.red {color: red}
.blue {color: blue}
-->
</style>

<SCRIPT LANGUAGE="JavaScript">
<!--
var Memory = 0;
var Number1 = "";
var Number2 = "";
var NewNumber = "blank";
var opvalue = "";

function Display(displaynumber) {
document.calculator.answer.value = displaynumber;
}

function MemoryClear() {
Memory = 0;
document.calculator.mem.value = "";
}

function MemoryRecall(answer) {
if(NewNumber != "blank") {
Number2 += answer;
} else {
Number1 = answer;
}
NewNumber = "blank";
Display(answer);
}

function MemorySubtract(answer) {
Memory = Memory - eval(answer);
}

function MemoryAdd(answer) {
Memory = Memory + eval(answer);
document.calculator.mem.value = " M ";
NewNumber = "blank";
}

function ClearCalc() {
Number1 = "";
Number2 = "";
NewNumber = "blank";
Display("");
}

function Backspace(answer) {
answerlength = answer.length;
answer = answer.substring(0, answerlength - 1);
if (Number2 != "") {
Number2 = answer.toString();
Display(Number2);
} else {
Number1 = answer.toString();
Display(Number1);
   }
}

function CECalc() {
Number2 = "";
NewNumber = "yes";
Display("");
}

function CheckNumber(answer) {
if(answer == ".") {
Number = document.calculator.answer.value;
if(Number.indexOf(".") != -1) {
answer = "";
   }
}
if(NewNumber == "yes") {
Number2 += answer;
Display(Number2);
}
else {
if(NewNumber == "blank") {
Number1 = answer;
Number2 = "";
NewNumber = "no";
}
else {
Number1 += answer;
}
Display(Number1);
   }
}
function AddButton(x) {
if(x == 1) EqualButton();
if(Number2 != "") {
Number1 = parseFloat(Number1) + parseFloat(Number2);
}
NewNumber = "yes";
opvalue = '+';
Display(Number1);
}
function SubButton(x) {
if(x == 1) EqualButton();
if(Number2 != "") {
Number1 = parseFloat(Number1) - parseFloat(Number2);
}
NewNumber = "yes";
opvalue = '-';
Display(Number1);
}
function MultButton(x) {
if(x == 1) EqualButton();
if(Number2 != "") {
Number1 = parseFloat(Number1) * parseFloat(Number2);
}
NewNumber = "yes";
opvalue = '*';
Display(Number1);
}
function DivButton(x) {
if(x == 1) EqualButton();
if(Number2 != "") {
Number1 = parseFloat(Number1) / parseFloat(Number2);
}
NewNumber = "yes";
opvalue = '/';
Display(Number1);
}
function SqrtButton() {
Number1 = Math.sqrt(Number1);
NewNumber = "blank";
Display(Number1);
}
function PercentButton() {
if(NewNumber != "blank") {
Number2 *= .01;
NewNumber = "blank";
Display(Number2);
   }
}
function RecipButton() {
Number1 = 1/Number1;
NewNumber = "blank";
Display(Number1);
}
function NegateButton() {
Number1 = parseFloat(-Number1);
NewNumber = "no";
Display(Number1);
}
function EqualButton() {
if(opvalue == '+') AddButton(0);
if(opvalue == '-') SubButton(0);
if(opvalue == '*') MultButton(0);
if(opvalue == '/') DivButton(0);
Number2 = "";
opvalue = "";
}
// -->
</script>

<!------- ¿©±â±îÁö ----->

</HEAD>
<BODY>

<!------- ¿øÇÏ´Â À§Ä¡¿¡ ¾Æ·¡ÀÇ ³»¿ëÀ» º¹»çÇØ ³ÖÀ¸¼¼¿ä -------->


<center>
<form name="calculator">
<table bgcolor="#aaaaaa" width=220>
<tr><td>
<table bgcolor="#cccccc" border=1>
<tr><td>
<table border=0 cellpadding=0>
<tr><td bgcolor="#000080" align=center><b style="color:white">JS °è»ê±â</b></td></tr>
<tr><td>
<table width="100%" border=0>
<tr><td colspan=6><input type="text" name="answer" size=30 maxlength=30 onChange="CheckNumber(this.value)"></td></tr>
<tr><td colspan=6>
<table border=0 cellpadding=0>
<tr><td>
<input type="text" name="mem" size=3 maxlength=3> <input type="button" name="backspace" class="red" value="     ¡ç     " onClick="Backspace(document.calculator.answer.value); return false;"> <input type="button" name="CE" class="red" value=" CE " onClick="CECalc(); return false;"> <input type="reset" name="C" class="red" value="  C  " onClick="ClearCalc(); return false;">
</td></tr>
</table>
</td></tr>
<tr><td><input type="button" name="MC" class="red" value=" MC " onClick="MemoryClear(); return false;"></td>
<td><input type="button" name="calc7" class="blue" value="  7  " onClick="CheckNumber('7'); return false;"></td>
<td><input type="button" name="calc8" class="blue" value="  8  " onClick="CheckNumber('8'); return false;"></td>
<td><input type="button" name="calc9" class="blue" value="  9  " onClick="CheckNumber('9'); return false;"></td>
<td><input type="button" name="divide" class="red" value="  /  " onClick="DivButton(1); return false;"></td>
<td><input type="button" name="sqrt" class="blue" value="sqrt" onClick="SqrtButton(); return false;"></td></tr>
<tr><td><input type="button" name="MR" class="red" value=" MR " onClick="MemoryRecall(Memory); return false;"></td>
<td><input type="button" name="calc4" class="blue" value="  4  " onClick="CheckNumber('4'); return false;"></td>
<td><input type="button" name="calc5" class="blue" value="  5  " onClick="CheckNumber('5'); return false;"></td>
<td><input type="button" name="calc6" class="blue" value="  6  " onClick="CheckNumber('6'); return false;"></td>
<td><input type="button" name="multiply" class="red" value="  *  " onClick="MultButton(1); return false;"></td>
<td><input type="button" name="percent" class="blue" value=" %  " onClick="PercentButton(); return false;"></td></tr>
<tr><td><input type="button" name="MS" class="red" value=" MS " onClick="MemorySubtract(document.calculator.answer.value); return false;"></td>
<td><input type="button" name="calc1" class="blue" value="  1  " onClick="CheckNumber('1'); return false;"></td>
<td><input type="button" name="calc2" class="blue" value="  2  " onClick="CheckNumber('2'); return false;"></td>
<td><input type="button" name="calc3" class="blue" value="  3  " onClick="CheckNumber('3'); return false;"></td>
<td><input type="button" name="minus" class="red" value="  -  " onClick="SubButton(1); return false;"></td>
<td><input type="button" name="recip" class="blue" value="1/x " onClick="RecipButton(); return false;"></td></tr>
<tr><td><input type="button" name="Mplus" class="red" value=" M+  " onClick="MemoryAdd(document.calculator.answer.value); return false;"></td>
<td><input type="button" name="calc0" class="blue" value="  0  " onClick="CheckNumber('0'); return false;"></td>
<td><input type="button" name="negate" class="blue" value="+/- " onClick="NegateButton(); return false;"></td>
<td><input type="button" name="dot" class="blue" value="  .   " onClick="CheckNumber('.'); return false;"></td>
<td><input type="button" name="plus" class="red" value=" +  " onClick="AddButton(1); return false;"></td>
<td><input type="button" name="equal" class="red" value="  =   " onClick="EqualButton(); return false;"></td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</form>
</center>

<!------- ¿©±â±îÁö ----->

</BODY>
</HTML>



ps : Á¤¸®¸¦ ÇÏÀÚ¸é, ±âº»ÀԷ»çÇ×À» ÆûÀ¸·Î Çؼ­, ±× ÆûÀÇ Çհ踦
      °è»ê±â¿¡ Ãâ·ÂÇÏ°í, ±× ÀÌÈÄÀÇ ´Ù¸¥ °è»êÇÒ²² ÀÖÀ¸¸é Ãß°¡·Î
      °è»êÀÌ °¡´ÉÇÑ ±×·± °è»ê±â¿¡¿ä.
       ²¿¿À¿À¿Á ºÎŹµå¸³´Ï´Ù. ¤Ñ________________________¤Ñ





 

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û Áú¹®ÀÌ ÀÖ½À´Ï´Ù.-php 2003-12-19 11:14:59
´ÙÀ½°Ô½Ã±Û ¿À¿¡Ä«Å° °ü·Ã Áú¹®ÀÌ¿ä 2003-12-24 11:05:03