Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.
Graphics@Tooltip[Hyperlink[{Purple, Rectangle[{0, 0}]}, "http://www.wolfram.com"], 
Graphics[Disk[]]]

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

1 Answer 1

up vote 3 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

 
discard

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.