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

ÀÚ¹Ù½ºÅ©¸³Æ® ¿¬½À ¿¹Á¦ - ·£´ýÇÏ°Ô ¿òÁ÷ÀÌ´Â ÅؽºÆ® ¸¸µé±â
7³â Àü
<script>
//·£´ýÇÑ Á¤¼ö »ý¼º
function nextRandomInteger(limit) {
        return Math.round(Math.random() * limit);
}

//·£´ýÇÑ ¾ËÆĺª ¸®ÅÏ
var alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
function randomAlphabet(){
        return alphabet.charAt(nextRandomInteger(25));        
}

//¾ç¼ö¿Í À½¼öÀÇ ·£´ýÇÑ ¼Óµµ »ý¼º
function randomSpeed(maxSpeed){
        return Math.random() * maxSpeed - Math.random() * maxSpeed;
}
</script>

<script>
//Moving TextÀÇ »ý¼ºÀÚ ÇÔ¼ö
var canvasWidth = 700;
var canvasHeight = 400;

function MovingText(){
        this.x = nextRandomInteger(canvasWidth);
        this.y = nextRandomInteger(canvasHeight);
        this.vx = randomSpeed(10);
        this.vy = randomSpeed(10);
        
        //¹®¼­°´Ã¼ »ý¼º
        this.body = document.createElement('h1');
        this.body.innerHTML = randomAlphabet();
        this.body.style.position = 'absolute';
        
        //¹®¼­°´Ã¼¸¦ document.body¿¡ Ãß°¡
        document.body.appendChild(this.body);
}

MovingText.prototype.move = function(){
        //¹üÀ§°Ë»ç
        if(this.x < 0 || this.x > canvasWidth) {this.vx *= -1;}
        if(this.y < 0 || this.y > canvasHeight) {this.vy *= -1;}
        
        //À̵¿
        this.x += this.vx;
        this.y += this.vy;
        
        //È­¸é¿¡ À̵¿Ç¥½Ã
        this.body.style.left = this.x + 'px';
        this.body.style.top = this.y + 'px';
};
</script>

<script>
window.onload = function(){
        var movingTexts = [];
        
        for(var i = 0; i<100; i++){
                movingTexts.push(new MovingText());
        }
        
        setInterval(function(){
                for(var i in movingTexts){
                        movingTexts[i].move();
                }
        }, 1000/60);
};
</script>
ÃßõÃßõ : 250 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
2,825
»ç¿ëÀÚ°¡ À¥ºê¶ó¿ìÀú¿¡¼­ µÚ·Î°¡±â¸¦ ÇßÀ»¶§ °¨ÁöÇÏ´Â ¹æ¹ý
2,824
[jQuery]¹öÆ° È°¼ºÈ­, ºñÈ°¼ºÈ­
2,823
jQuery show() / hide() / toggle() »ç¿ë¹ý
2,822
jquery ¿©·¯°¡Áö À̺¥Æ®
2,821
border-radius ¼Ó¼º
2,820
³×À̹ö ¿ÀÇÂAPI À½¼ºÇÕ¼º API »ç¿ëÇÏ´Â PHP »ùÇÃÄÚµå
2,819
UTF8 ÇÑ±Û ÀÚ¸£±â..
2,818
iconv ¿¡·¯ ¹ß»ý½Ã °è¼Ó ó¸®Çϱ⠿ɼÇ
2,817
[PHP] ÇöÀç ÆäÀÌÁöÀÇ µµ¸ÞÀÎ , URL Á¤º¸ ¾Ë¾Æ³»±â.
2,816
[PHP] ¸·°­ ±â´É ¹è¿­..
2,815
[CSS] - Input clear `X ` ¹öÆ° Á¦°Å ( IE, Chrome, Firefox )
2,814
[Mobile] - ¸ð¹ÙÀÏÀ¥ Href ű׼Ӽºµé
2,813
[JqueryMobile] - ÇöÀçÈ­¸éÀÇ °¡·Î¼¼·Î »çÀÌÁî ±¸Çϱâ
2,812
[JqueryMobile] - È­¸éÀÇ °¡·Î, ¼¼·Î »çÀÌÁî ±¸ÇÏ´Â ¹æ¹ý
2,811
jquery·Î °¡·Î ³ÐÀÌ(width), ¼¼·Î ³ôÀÌ(height) ÀÚµ¿ Á¶Àý
2,810
iframe ³ôÀÌ jquery·Î ÀÚµ¿Á¶ÀýÇϱâ
2,809
jQuery ¿À¸¥ÂÊ ¿µ¿ªÀÇ ³ôÀ̸¦ ¿ÞÂÊ ¿µ¿ªÀÇ ³ôÀÌ¿Í µ¿ÀÏÇÏ°Ô Çϱâ
2,808
jquery¿¡¼­ Å×À̺í ¦¼ö, Ȧ¼ö ¹ø° TR ¹è°æ»ö º¯°æÇϱâ
2,807
jquery¿¡¼­ Å×ÀÌºí¿¡ ¸¶¿ì½º ¿À¹ö½Ã ÇØ´ç ÇàÀÇ ¹è°æ»ö»ó º¯°æÇϱâ
2,806
jquery ½ºÅ©¸³Æ®³» ƯÁ¤°ª È®ÀÎÇϱâ (µð¹ö±ë)
2,805
jquery cookie (jquery.cookie.js)
2,804
jquery div ±âº» ³ÐÀÌ, ³ôÀÌ °è»ê ¹× padding, border Æ÷ÇÔ Çϱâ
2,803
jquery ´Ù¸¥¹öÀü Ãß°¡ »ç¿ë½Ã Ãæµ¹ ¹æÁö (Ä«Æä24 ½º¸¶Æ®µðÀÚÀÎ ±âº»³»Àå jquery 1.4.4 ¹öÀü°ú Ãæµ¹½Ã ÇØ°á¹æ¹ý)
2,802
ƯÁ¤ ÆäÀÌÁö Á¾·á½Ã È®ÀÎ °æ°íâ Ãâ·Â
2,801
jquery ¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ° Ŭ¸¯ ±ÝÁö (¿ìŬ¸¯ Á¦ÇÑ)
2,800
Á¤±Ô½Ä ƯÁ¤±¸°£ÀÇ ³»¿ë¸¸ °¡Á®¿À±â
2,799
°ýÈ£() ¾ÈÀÇ ³»¿ë¸¸ ÃßÃâ
2,798
4±â°¡ ÀÌ»óÀÇ Å×À̺íÀ» ¸¸µé°í ½Í´Ù¸é(Å×À̺íÀÇ AVG_ROW_LENGTH, MAX_ROWS)
2,797
Á¤±Ô Ç¥Çö½Ä(Regular Expression)
2,796
PHP¿¡¼­ À¯¿ëÇÏ°Ô ¾²ÀÌ´Â ¹®ÀÚ¿­ ó¸® ÇÔ¼ö
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.