Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I draw a line?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I want to specify two points to draw a line in my page, how can I do that using HTML-Javascript???
Thanks for any answer
 
The only way to do that is to use Javascript in conjuction with either VML or Java. Javascript itself has no direct access to graphics rendering, so you have to use it to 'talk' to a graphics program.

I know it's possible to use VML with IE5+ (see click on "HTML, DHTML, Scripting", then see VML in the resulting left-hand menu), and I believe Netscape 6 has an add-on VML renderer also, although I haven't experimented with it.

There are quite a few Java applets for simple line drawing, and many Java applets are compiled with support for a Javascript interface.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top