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

Åä³×À̵µ¿¡ °ü·ÃµÈ ÀÚ¹Ù½ºÅ©¸³Æ® ¿ø¹®ÀÔ´Ï´Ù.

<html>
<head>
    <title>ÇØÇÇCGI</title>
    <style type="text/css">
    #screen {
        position:absolute;
        left: 0%;
        top: 0%;
        width: 100%;
        height: 100%;
        cursor: pointer;
        z-index:100;
    }
    #screen img {
        position: absolute;
    }
</style>

<script type="text/javascript">
tor = {
    O :  0,
    xm : 0,
    ym : 0,

    //////////////////////////////////////////////
    nbrParticles : 100,
    speed : 6,
    strength : .4,
    radius : 4,
    perspective : .5,
    //////////////////////////////////////////////

    mouse : function (e) {
        if(tor.drag) {
            if (window.event) e = window.event;
            tor.xm = e.clientX - tor.nx;
            tor.ym = e.clientY - tor.ny;
        }
    },

    run : function () {
        var o = tor.O;
        do {
            o.R += o.V;
            o.style.left = Math.round(o.X + Math.cos(o.R) * o.r - o.W) + 'px';
            o.style.top = Math.round(o.T + o.Y + Math.sin(o.R) * o.r * tor.perspective - o.H) + 'px';
            if (o.parent){
                o.X += (o.parent.X - o.X) * tor.strength;
                o.Y += (o.parent.Y - o.Y) * tor.strength;
            } else {
                o.X = tor.xm;
                o.Y = tor.ym;
            }
            o = o.next;
        } while (o);
        setTimeout(tor.run, 16);
    },

    resize : function () {
        var o = tor.scr;
        tor.nw = o.offsetWidth;
        tor.nh = o.offsetHeight;
        for (tor.nx = 0, tor.ny = 0; o != null; o = o.offsetParent) {
            tor.nx += o.offsetLeft;
            tor.ny += o.offsetTop;
        }
    },

    zIndex : function () {
        var o = tor.O;
        var i = 0;
        tor.zI = !tor.zI;
        do {
            o.style.zIndex = tor.zI ? 1000 - i++ : 1000 + i++;
            o = o.next;
        } while (o);
    },

    init : function () {
        this.scr = document.getElementById('screen');
        this.scr.onselectstart = function () { return false; }
        this.scr.ondrag        = function () { return false; }
        this.scr.onmousedown   = function (e) {
            tor.drag = true;
            tor.scr.style.cursor = "move";
            tor.mouse(e);
            return false;
        }
        this.scr.onmouseup = function () {
            tor.drag = false;
            tor.scr.style.cursor = "pointer";
            return false;
        }
        this.resize();
        var O;
        var img = document.getElementById('particles').getElementsByTagName('img');
        for (var i = 0; i < this.nbrParticles; i++) {
            var o = document.createElement('img');
            if (i > 0) {
                O.next = o;
                o.parent = O;
            } else this.O = o;
            var P = img[Math.floor(i*(img.length/this.nbrParticles))];
            o.src = P.src;
            o.r = tor.radius * i * i / this.nbrParticles + 5;
            o.W = P.width * .5;
            o.H = P.height * .5;
            o.T = (-this.nh / 1.8) + (this.nh * 8 / (o.r + 10));
            o.R = Math.random() * 2 * Math.PI;
            o.X = this.nw / 2;
            o.Y = tor.nh * 2;
            o.V = this.speed / o.r;
            this.scr.appendChild(o);
            O = o;
        }
        tor.xm = tor.nw /2;
        tor.ym = tor.nh * .9;
        tor.run();
    }
}

onload = function() {
    document.onmousemove = function (e) { tor.mouse(e);    }
    onresize = tor.resize;
    tor.init();
}


</script>
</head>

<body>

<div id="screen"></div>

<form>
    <input type="checkbox" onclick="tor.zIndex()"> inner/outer<br>
    stiffness:<input onclick="tor.strength=.2" type="radio" name="str">
              <input onclick="tor.strength=.4" type="radio" name="str" checked>
              <input onclick="tor.strength=.6" type="radio" name="str">
</form>

<div id="particles" style="visibility:hidden">
    <img alt="" src="http://www.blueb.co.kr/SRC/javascript/image1/star1.gif">
    <img alt="" src="http://www.blueb.co.kr/SRC/javascript/image1/star2.gif">
    <img alt="" src="http://www.blueb.co.kr/SRC/javascript/image1/star3.gif">
    <img alt="" src="http://www.blueb.co.kr/SRC/javascript/image1/star4.gif">
</div>

</body>
</html>

 


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