html - jQuery: Calculate Image Map area size and show div in the middle -
html - jQuery: Calculate Image Map area size and show div in the middle -
i need show div while image map area hover (something tooltip ).
that's ok, problem need show div on middle of each area, in different shapes , sizes. don't want utilize tooltip plugin, content of should easy change.
the jsfiddle in comment.
i don't have deep knowledges of jquery, that's why need help that)) thanks!
if understand correctly , have image map want set pointer center .
try this
var width = jquery("#imagemaps").attr("width"); var height = jquery("#imagemaps").attr("height"); var width = width / 2; var height = height / 2; var point = jquery("#div position").style("margin-top",height); var point = jquery("#div position").style("margin-left",width);
i assume have same div pointer image maps.
jquery html map
Comments
Post a Comment