lets say we have an image of human body, i want when user hover over part of body (head,arm,etc), this organ turn green and when he clicks a defined action happens.
is it doable using javascript ? if so what would be the concept ?
reason for question :
Objective: this is all a small part of an existing project in which user inputs his medical history, so i want insteed of giving him a dropdown with all organs just show a model of human and he click and save his history of tramua etc..
to do that i think i will need an image of human body and to define the boundaries in X-Y of each organ represented on this image and give it some properties(name).
is there something similar existing in js-jquery ? or i need to invent the wheel ?
You can use HTML Maps and bind a mouse event to the different areas to change the color and perform a different callback on click.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With