½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > JAVASCRIPT > javascript ¼Ò½ºÃ¢°í > °ÔÀÓ > ¸Þ¸ð¸®°ÔÀÓ1 »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
¸Þ¸ð¸®°ÔÀÓ1
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù °ÔÀÓ
´Ù¿î·Îµå Ƚ¼ö 911 ȸ
°£´Ü¼³¸í ¸Þ¸ð¸® °ÔÀÓÀÔ´Ï´Ù. ÆÛÁñÁ¶°¢À» ¿­¾îº¸°í °°Àº ±×¸²À» 2°³¾¿ ¸ÂÃç°¡¸é¼­ ÁøÇàµÇ´Â °ÔÀÓÀÔ´Ï´Ù.
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var pics = new Array();
    for (i = 0; i <= 18; i++) {
        pics[i] = new Image();
        pics[i].src = 'image/image' + i + '.gif';
    }

var map=new Array(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18);
var user = new Array();
var temparray = new Array();
var clickarray = new Array(0, 0);
var ticker, sec, min, ctr, id, oktoclick, finished;

function init() {
    clearTimeout(id);
    for (i = 0; i <= 35 ;i++) {
        user[i] = 0;
    }
    ticker = 0;
    min = 0;
    sec = 0;
    ctr = 0;
    oktoclick = true;
    finished = 0;
        document.f.b.value = "";
    scramble();
    runclk();

    for (i = 0; i <= 35; i++) {
        document.f[('img'+i)].src = "image/image0.gif";
    }
}

function runclk() {
    min = Math.floor(ticker/60);
    sec = (ticker-(min*60))+'';
    if(sec.length == 1) {sec = "0"+sec};
        ticker++;
        document.f.b.value = min+":"+sec;
        id = setTimeout('runclk()', 1000);
    }

function scramble() {
    for (z = 0; z < 5; z++) {
    for (x = 0; x <= 35; x++) {
        temparray[0] = Math.floor(Math.random()*36);
        temparray[1] = map[temparray[0]];
        temparray[2] = map[x];
        map[x] = temparray[1];
        map[temparray[0]] = temparray[2];
      }
   }
}

function showimage(but) {
    if (oktoclick) {
        oktoclick = false;
        document.f[('img'+but)].src = 'image/image'+map[but]+'.gif';
    if (ctr == 0) {
        ctr++;
        clickarray[0] = but;
        oktoclick = true;
    } else {
        clickarray[1] = but;
        ctr = 0;
        setTimeout('returntoold()', 600);
      }
   }
}

function returntoold() {
    if ((clickarray[0] == clickarray[1]) && (!user[clickarray[0]])) {
        document.f[('img'+clickarray[0])].src = "image/image0.gif";
        oktoclick = true;
    } else {
        if (map[clickarray[0]] != map[clickarray[1]]) {
        if (user[clickarray[0]] == 0) {
        document.f[('img'+clickarray[0])].src = "image/image0.gif";
    }
        if (user[clickarray[1]] == 0) {
        document.f[('img'+clickarray[1])].src = "image/image0.gif";
   }
}

    if (map[clickarray[0]] == map[clickarray[1]]) {
    if (user[clickarray[0]] == 0&&user[clickarray[1]] == 0) { finished++; }
        user[clickarray[0]] = 1;
        user[clickarray[1]] = 1;
    }

    if (finished >= 18) {
        alert('You did it in '+document.f.b.value+' !');
        init();
    } else {
oktoclick = true;
      }
   }
}
// -->
</script>
</HEAD>

<BODY OnLoad="init()">

<b>±×¸² ã±â</b>
<form name="f">
<table cellpadding="0" cellspacing="0" border="0">
<script language="javascript">
<!-- Begin
for (r = 0; r <= 5; r++) {
document.write('<tr>');
for (c = 0; c <= 5; c++) {
document.write('<td align="center">');
document.write('<a href="javascript:showimage('+((6*r)+c)+')" onClick="document.f.b.focus()">');
document.write('<img src="image/image0.gif" name="img'+((6*r)+c)+'" border="0">');
document.write('</a></td>');
}
document.write('</tr>');
}
// -->
</script>
</table>
<br><input type="button" value="         " name="b" onClick="init()">
</form>

</body>
</html>


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
µî·ÏµÈ ÀÇ°ßÀÌ ¾ø½À´Ï´Ù.
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 74368554 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.