I have a background image and I want to click on a certain area to take me to a website, how can I do that?
Asked
Active
Viewed 55 times
0
-
Sounds lika i HTML Image Map - Take a look at :https://www.w3schools.com/html/html_images_imagemap.asp – Daniel Stackenland Sep 30 '22 at 11:00
-
Is this of any help https://stackoverflow.com/questions/54057726/how-to-find-a-right-place-on-a-webpage-to-make-a-click? – KWriter Sep 30 '22 at 11:00
1 Answers
1
This seems like a duplicate of:
How to make a section of an image a clickable link
Here's a quick little example I made based on the answer to that question:
https://jsfiddle.net/hw6L5ye9/
<img src="https://i.stack.imgur.com/vXgSW.png" width="500" height="300" alt="alttext" usemap="#mapname">
<map name="mapname">
<area shape="rect" coords="35,230,210,290" href="http://www.example.com" alt="alttext">
</map>

lukenetsurfer
- 84
- 1
- 5