Daniel Rench

Web application development : Servers : Networks : E-Mail : DNS : Databases : Programming for hire

previous : contact : linkedin : code : links : pictures : facebook : twitter : next

PongBounce (#2 in the Gratuitous Javascript Series)

<script type="text/javascript" src="http://dren.ch/rel/pongbounce/pongbounce.js"><script>
<script type="text/javascript">
PongBounce(document.images[Math.floor(Math.random(document.images.length))]);
</script>

PongBounce() takes one argument: a DOM object that has width and height properties like <img> and <object>. The above example picks a random image on the page and applies the "PongBounce" effect.

See it in action at zomno.org.

<< A workaround for lacking textarea "SAR" technologies | Home | Portfolio | Contact | Javascript strftime >>