Google Blogoscoped

Forum

Drawing Lines With JavaScript  (View post)

Brian [PersonRank 0]

Thursday, September 22, 2005
15 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]

15 years ago #

What about using DOM methods in stead of innerHTML. This script sucks, I'd rather use this one:
walterzorn.com/jsgraphics/jsgr ...

Philipp Lenssen [PersonRank 10]

15 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]

15 years ago #


west.co.tt/matt/js/redbug/redb ...
(works only in IE)

regards,
Arjun
arjunprabhu.com/blog/

Mathieu 'P01' HENRI [PersonRank 1]

15 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

This thread is locked as it's old... but you can create a new thread in the forum. 

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!