Image with a link in a specific point

落爺英雄遲暮 提交于 2019-12-24 08:07:06

问题


I need to create a website with this kind of function:

I have an image (like a park area), so in different points of this image I must create a div which will do a hover effect and show a textbox with an image (or maybe a link to it).

My main doubt is that I have no idea how can I get certain points of this image to create a div with this hover effect.


回答1:


Please check the below URL's. Hope this may helpful

http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_areamap

http://www.howtocreate.co.uk/tutorials/html/imagemaps

http://www.outsharked.com/imagemapster/




回答2:


you can do with jQuery. Please, firstly look at this link. You can take mouse x and y position on image. Then on x and y position, you can do, what you want.



来源:https://stackoverflow.com/questions/39601351/image-with-a-link-in-a-specific-point

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!