»
EnglishFrenchVietnamese

Print - 3D Moving Balls - JavaScriptBank.com

Full version: jsB@nk » 3D » 3D Moving Balls
URL: http://www.javascriptbank.com/quayvong3d.html

3D Moving Balls © JavaScriptBank.comThis JavaScript code makes the movement of balls accords three dimensions view. It look like 3D animation and very cool.

Full version: jsB@nk » 3D » 3D Moving Balls
URL: http://www.javascriptbank.com/quayvong3d.html



JavaScript
<SCRIPT>/*     This script downloaded from www.JavaScriptBank.com     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com*/var x=0, y=0,spiralCount=1,namesAre,dimx=0.1,blabla=1function Ve()    {    if(spiralCount==169 && dimx<1.1 && blabla==1)        {        blabla=0        dimx+=0.1        }        else if(spiralCount==169 && dimx<1.1 && blabla==0)            {            blabla=1            dimx-=0.1            }            if(spiralCount<170)                {                namesAre="circle"+spiralCount                document.all.item(namesAre).style.top=300+Math.sin(y)*spiralCount                <!--Suu tam boi Nguyen Truong Minh Chanh -->document.all.item(namesAre).style.left=300+Math.cos(x)*spiralCount                x+=dimx                y+=0.1                spiralCount=spiralCount+1                namesAre="circle" + spiralCount                }                else                    {                    spiralCount=1                    }                                                                            }                function GoRound()                    {                    while(spiralCount<170)                        {                        namesAre="circle"+spiralCount                        spiralCount=spiralCount+1                        document.write ("<DIV id=" + namesAre + " style='position:absolute;top:100;left:100'><img src='hinhvongtron.gif'></DIV>")                        }                        spiralCount=1                        Mooki=setInterval('Ve()',10)                    }                    GoRound()                    </SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


Files
http://javascriptbank.com/javascript/3d/hinhvongtron.gif