开发者

Placing points on top of an image with HTML/Javascript

I would like to find some code or a technique to place points on top of an image in HTML. When the user clicks on the image, javascript event calls a function with the x,y positions of the pointer relative to the origin of the image. Ideally, the user would also be able to zoo开发者_如何学编程m in/out on bigger images that can't fit on the page.

Thanks for any help/ideas!


It sounds like you should look into HTML5, particularly the Canvas element:

Here are some resources:

  • Reference Documentation
  • How to draw with HTML5 Canvas
  • Lets call it a drawing surface
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜