Putting links in graphics?

  • Thread starter Thread starter BillTre
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 1K views
Science Advisor
Gold Member
Messages
2,836
Reaction score
12,601
Is there an easy way to put links into graphics (vector drawings), such as for InSights articles of forum posts?
For example, if I have some text in a drawing, can I link it to an article somewhere, either from the text or on someway putting a transpartent button over it?
 
Physics news on Phys.org
Links that are limited to specific areas of the image? That needs more html features than forums allow.
 
Reply
  • Informative
Likes   Reactions: BillTre
The feature you refer to exists in HTML and is called an image map ("map", see below). It allows an image to have clickable areas.

I don't know any fora that support it.
Code:
<img src="workplace.jpg" alt="Workplace" usemap="#workmap">

<map name="workmap">
  <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
  <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
  <area shape="circle" coords="337,300,44" alt="Coffee" href="coffee.htm">
</map>
 
Reply
  • Informative
Likes   Reactions: BillTre
I was afraid of that, but thought it worth checking.
Thanks guys!