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


3D ÀÔü °¶·¯¸® (¹Ù¶÷°³ºñ ´À³¦) »ó,ÇÏ,ÁÂ,¿ì µå·¡±× °¡´É
12³â Àü
<html>
<head>
<meta http-equiv="imagetoolbar" content="no">
<style type="text/css">
    #screen {
        position:absolute;
        left: 10%;
        top: 10%;
        width: 600;
        height: 600;
        overflow: hidden;
    }
    #screen img {
        position: absolute;
        cursor: pointer;
        width: 0px;
        filter: fliph flipv;
    }
</style>


<script type="text/javascript">
var car = {
    scr  : 0,
    img  : 0,
    xm   : 0,
    ym   : 0,
    xmb  : 0,
    ymb  : 0,
    drag : false,
    cosY : 0,
    cosX : 0,
    sinY : 0,
    sinX : 0,
    xd   : 0,
    yd   : -10,

    run : function () {
        /* ==== rotation speed ==== */
        var Ay = car.xd / (car.scr.offsetWidth * .2);
        var Ax = car.yd / (car.scr.offsetHeight * .2);
        /* ==== vertical / horizontal friction ==== */
        if(!car.drag){
            if(Math.abs(car.xd) > Math.abs(car.yd)){
                car.xd *= .99;
                car.yd *= .95;
            } else {
                car.xd *= .95;
                car.yd *= .99;
            }
        }
        /* ==== rotation angles ==== */
        car.cosY = Math.cos(Ay);
        car.cosX = Math.cos(Ax);
        car.sinY = Math.sin(Ay);
        car.sinX = Math.sin(Ax);
        /* ==== animate images ==== */
        for(var i = 0; i < 8; i++) car.img[i].rotate();
        /* ==== loop ==== */
        setTimeout(car.run, 16);
    },

    mouse : function (e) {
        this.xm = e.clientX;
        this.ym = -e.clientY;
        if(this.drag){
            this.xd = this.xm - this.xmb;
            this.yd = this.ym - this.ymb;
        }
        this.xmb = this.xm;
        this.ymb = this.ym;
    },

    resize : function () {
        car.nw = car.scr.offsetWidth;
        car.nh = car.scr.offsetHeight;
    },

    init : function () {
        this.scr = document.getElementById('screen');
        this.img = this.scr.getElementsByTagName('img');
        this.resize();
        var k = 0;
        for(var xi = -1; xi <= 1; xi+=2) {
            for(var yi = -1; yi <= 1; yi+=2) {
                for(var zi = -1; zi <= 1; zi+=2) {
                    var o = this.img[k++];
                    o.css = o.style;
                    o.x3d = xi;
                    o.y3d = yi;
                    o.z3d = zi;
                    o.onselectstart = function () { return false; }
                    o.ondrag        = function () { return false; }
                    o.onmousedown   = function () {
                        car.drag = true;
                        car.xd = 0;
                        car.yd = 0;
                        this.css.cursor = "move";
                        return false;
                    }
                    o.onmouseout    = function () {car.drag = false; this.css.cursor = "pointer"; return false; }
                    o.onmouseup     = function () {car.drag = false; this.css.cursor = "pointer"; return false; }
                    o.rotate        = function () {
                        /* ==== trigo ==== */
                        var tz   = this.z3d * car.cosY - this.x3d * car.sinY;
                        this.x3d = this.z3d * car.sinY + this.x3d * car.cosY;
                        this.z3d = this.y3d * car.sinX + tz * car.cosX;
                        this.y3d = this.y3d * car.cosX - tz * car.sinX;
                        var zf   = 1 / (this.z3d / 10 + 1);
                        var x2d  = this.x3d * zf * car.nw * .2;
                        var y2d  = this.y3d * zf * car.nh * .2;
                        var w2d  = Math.abs(x2d * 1.6);
                        var h2d  = Math.abs(y2d * 1.6);
                        /* ==== HTML animation ==== */
                        this.css.left   = ''.concat(Math.round(car.nw * .5 - x2d - w2d * .5), 'px');
                        this.css.top    = ''.concat(Math.round(car.nh * .5 - y2d - h2d * .5), 'px');
                        this.css.width  = ''.concat(Math.round(w2d), 'px');
                        this.css.height = ''.concat(Math.round(h2d), 'px');
                        this.css.zIndex = Math.round(zf * 100);
                        if (this.filters) {
                            /* ==== additional IE flip effect ==== */
                            this.filters[0].enabled = (x2d < 0) ? "true" : "false";
                            this.filters[1].enabled = (y2d < 0) ? "true" : "false";
                        }
                    }
                }
            }
        }
        this.run();
    }

}

onload = function() {
    /* ==== window mousemove event ==== */
    document.onmousemove = function (e) {
        if (window.event) e = window.event;
        car.mouse(e);
    }
    /* ==== window onresize event ==== */
    onresize = car.resize;
    /* ==== launch script ==== */
    car.init();
}

</script>
</head>

<body>
À̹ÌÁö¸¦ »ó,ÇÏ,ÁÂ,¿ì·Î µå·¡±× ÇÏ½Ã¸é °¢°¢ÀÇ ¹æÇâÀ¸·Î ȸÀü½Ãų ¼ö ÀÖ½À´Ï´Ù.

<div id="screen">
    <div style="position:absolute;width:100%;height:10%;"></div>
    <div style="position:absolute;width:100%;height:10%;bottom:0px"></div>
    <img src="À̹ÌÁöÁÖ¼Ò" alt="11">
    <img src="À̹ÌÁöÁÖ¼Ò" alt="11">
    <img src="À̹ÌÁöÁÖ¼Ò" alt="11">
    <img src="À̹ÌÁöÁÖ¼Ò" alt="11">
    <img src="À̹ÌÁöÁÖ¼Ò" alt="11">
    <img src="À̹ÌÁöÁÖ¼Ò" alt="11">
    <img src="À̹ÌÁöÁÖ¼Ò" alt="11">
    <img src="À̹ÌÁöÁÖ¼Ò" alt="11">
</div>

</body>
</html>
ÃßõÃßõ : 660 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
2,885
input ÀÔ·Â ÇÊµå ¾ÕµÚ °ø¹é ½Ç½Ã°£ Á¦°Å
2,884
Placeholder Æ÷Ä¿½º½Ã °¨Ãß±â
2,883
MySQL Áߺ¹µÈ µ¥ÀÌÅ͸¦ »èÁ¦
2,882
MySQL Áߺ¹ µ¥ÀÌÅÍ È®ÀÎ
2,881
sessionStorage.getItem ¿Í sessionStorage.setItem
2,880
Á¦ÀÌÄõ¸® ·£´ýÀ¸·Î ¹è°æ»ö º¯°æ
2,879
preg match¿¡ °üÇÑ Á¤±Ô½Ä
2,878
Stream an audio file with MediaPlayer ¿Àµð¿À ÆÄÀÏ ½ºÆ®¸®¹Ö Çϱâ
2,877
Audio Streaming PHP Code
2,876
PHP $ SERVER ȯ°æ º¯¼ö Á¤¸®
2,875
Vimeo (ºñ¸Þ¿À) API ¸¦ »ç¿ëÇÏ¿© Ç÷¹À̾î ÄÁÆ®·ÑÇϱâ
2,874
iframe »ç¿ë½Ã ÇÏ´Ü¿¡ ¹ß»ýÇÏ´Â °ø¹é Á¦°Å¹æ¹ý
2,873
¾ÆÀÌÇÁ·¹ÀÓ(iframe) Àüüȭ¸é °¡´ÉÇÏ°Ô Çϱâ
2,872
ºÎÆ®½ºÆ®·¦(bootstrapk)¿¡¼­ »ç¿ëÇÏ´Â class¸í Á¤¸®
2,871
ºÎÆ®½ºÆ®·¦ CSS
2,870
Å©·Ò¿¡¼­ ¸¶Áø Á¶Àý
2,869
PHP ÇöÀç ÆäÀÌÁöÀÇ µµ¸ÞÀθíÀ̳ª urlµîÀÇ Á¤º¸ ¾Ë¾Æ¿À±â
2,868
PHP preg match all()
2,867
PHP ·Î À¥ÆäÀÌÁö ±Ü¾î¿À±â ¸ðµç ¹æ¹ý ÃÑÁ¤¸®!
2,866
[PHP] ¿ø°ÝÁö ÆÄÀÏ ÁÖ¼Ò ³ëÃâ ¾ÈÇÏ°í curl·Î ´Ù¿î·Îµå ¹Þ±â
2,865
PHP ÇÔ¼ö Á¤¸®
2,864
¾ÆÀÌÇÁ·¹ÀÓ(iframe) ºñÀ² À¯ÁöÇϸ鼭 Å©±â Á¶ÀýÇÏ´Â ¹æ¹ý
2,863
PHP ¹è¿­¿¡¼­ ¹«ÀÛÀ§·Î Çϳª »Ì¾ÆÁÖ´Â array rand() ÇÔ¼ö
2,862
PHP Á¤±Ô½Ä Á¤¸®
2,861
PHP Á¤±Ô½ÄÀ» È°¿ëÇÑ ÅÂ±× ¹× ƯÁ¤ ¹®ÀÚ¿­ Á¦°Å ¹× ÃßÃâ ¹æ¹ý
2,860
php Å©·Ñ¸µ ¶Ç´Â ÆÄ½Ì ÇÔ¼ö, Á¤±Ô½Ä ¸ðÀ½
2,859
Á¦ÀÌÄõ¸® ±âº» ¸í·É¾î
2,858
À¥ÆäÀÌÁö °¡·Î ¸ðµå¼¼·Î ¸ðµå ÀνÄÇϱâ
2,857
¸ð¹ÙÀÏ À¥ È­¸é °­Á¦ ȸÀü(°¡·Î¸ðµå °íÁ¤)
2,856
[HTML5]¿¡¼­ frameset ´ëü ¹æ¹ý°ú iframe ¼Ó¼º
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.