Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
Graphics@Tooltip[Hyperlink[{Purple, Rectangle[{0, 0}]}, ""], 

Is it possible to make image tooltip kept in the html?

enter image description here

share|improve this question
Related question: How to work around incorrect tooltips in plots exported to HTML – Jens Aug 15 '13 at 3:43
up vote 4 down vote accepted

The answer in general is no, and I've also wished there was a simple way to do it. The only exception I know of is when you export a notebook with a ContoutPlot or ListContourPlot to HTML, as in this question. The exported GIF image actually contains a reference to an image map which is a very old-fashioned way of providing tooltip information in images embedded into HTML. However, the coordinate ranges in the image map are often too buggy to be of any use whatsoever. It's as if someone forgot to finish this project 15 years ago and it's been in that state ever since.

If you export graphics to SVG individually, I think a viable option is to post-process the SVG file and add tooltips, e.g. implemented in Javascript. However, making this (or an expanded image map approach) part of the notebook's HTML export is more difficult.

share|improve this answer
How funny! I was looking at your linked question yesterday. It seems to me that the coordinate ranges might be the bounding box of the element (and these often overlap). – Michael E2 Aug 15 '13 at 11:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.