Image with a link in a specific point

2019-07-23 11:47发布

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.

2条回答
啃猪蹄的小仙女
2楼-- · 2019-07-23 12:08

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.

查看更多
登录 后发表回答