Google Blogoscoped

Forum

Drawing Lines With JavaScript  (View post)

Brian [PersonRank 0]

Thursday, September 22, 2005
18 years ago

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.

Andre [PersonRank 0]

18 years ago #

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

Philipp Lenssen [PersonRank 10]

18 years ago #

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.

Lines ??? check out this.. [PersonRank 0]

18 years ago #


http://www.west.co.tt/matt/js/redbug/redbug.html
(works only in IE)

regards,
Arjun
http://www.arjunprabhu.com/blog/

Mathieu 'P01' HENRI [PersonRank 1]

18 years ago #

[put at-character here]Andre: Check the page. I talked about the 1x1 DIVs and innerHTML version just to demonstrate how much it sucks.

[put at-character here]Arjun: Redbug is cool, so is Shingebis, but I have a crush for the drawing technique I use in NEJA :p

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!