Validators

Drawing functionality is not supported in most of popular browsers except Firefox and Safari with Canvas object. Using little trick we can draw line and circle using JavaScript. This is not best practice because need lot of execution time but it can be alternative way to draw simple and little objects.

Basically this trick is drawing many DIV elements with 1x1 pixel size inside the document. Basically we can't draw 1x1 pixel suze DIV element in IE. To resolve this issue, you can add IMG element inside the DIV with 1x1 pixel image. Here's the complete code to draw line and circle into HTML document.

What do you think this will be used for?
Obviously animated gif have been the de facto standard for 'faking' dynamicity in the web realm.
Is it more for writing our own custom transition animation perhaps?

It just give you altenative way to draw line and circle without images. This trick should not be implemented in real world because it's very ugly performance. Alternatively, you can create Flash with actionscript inside or Silverlight with javascript support.