Butterfly

A Sensuous Geographical Terrain Butterfly

Metaphysical Bodies

Links

 

function moveIt() { if (firstTime) { moverObj = document.getElementById("mover").style topPos = 5 leftPos = 5 firstTime = false } chgXBy = Math.floor(Math.random() * 10) if ((halfChance() || topPos >= maxHeight) && topPos > 5) { topPos-=chgXBy } else { topPos+=chgXBy } chgYBy = Math.floor(Math.random() * 10) if ((halfChance() || leftPos >= maxWidth) && leftPos > 5) { leftPos-=chgYBy } else { leftPos+=chgYBy } moverObj.top = topPos + "px" moverObj.left = leftPos + "px" setTimeout("moveIt()",20) } function halfChance() { if (Math.random() < .5) { return true } return false } // End hiding script --> Butterfly id="mover" />