Drawing lines with clickable points using JavaScript
问题 I'm interested in doing some drawing using JavaScript. I'll get straight to an example: alt text http://img693.imageshack.us/img693/3774/linep.png The green horizontal line would be static, and all the vertical lines would be clickable. An example of a clicked line would be the red one. I've seen many API's, but they all allow more complexity than I need, making it more complicated than necessary. Any suggestion for a good API? Make it oneself? 回答1: You could use CSS and html to make up the