Is there a javascript compass html widget?

For a project I am working on, the user has to enter a direction such as north (ie N), NE, etc. It would be nice to have a small compass on the web page that the user could tap on different points on the compass and this would represent the appropriate direction.

Is there any existing javascript html snippet that does this?

+1


a source to share


1 answer


It is probably faster and easier to get a compass image and map an imagemap to it. This concept can even work without JS if you draw 8 images using:

<input type="image">

      



It is best to position the radio select buttons at the compass points of the background image. Then you don't need to send immediately.

+3


a source







All Articles