I think that saying this is done with "nothing but JavaScript, CSS and HTML" is a tad misleading. It implies that he uses no images, and instead creates the lines dynamically in javascript. In fact all he's doing is using a prepared set of images of diagonal lines and then just emitting IMG tags to display them with resized dimensions to match the end coordinates of the lines. The example that he starts out with (creating a bunch of 1x1 DIVs) would quality as "nothing but JS, CSS, and HTML", but that is not what he's doing.
|
What about using DOM methods in stead of innerHTML. This script sucks, I'd rather use this one: http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm |
Brian, my intention was to define DHTML when I said "nothing but HTML, CSS, and JS...", as that is the common definition of DHTML. Thanks for the clarification though. |
Andre: Check the page. I talked about the 1x1 DIVs and innerHTML version just to demonstrate how much it sucks.
Arjun: Redbug is cool, so is Shingebis, but I have a crush for the drawing technique I use in NEJA :p |