0

Given an html page with several anchors defined. Is there a way to show in tooltip part of this page between two specified anchors? And, how?

You can assume the html page is something like this:

<body>
  <div>this is some text with tooltip when hovering</div>
  <a name="a1"></a>
  ....
  <a name="a2"></a>
  ....
  <a name="a3"></a>
  ....
  <a name="a4"></a>
</body>

So I want to hover on the div and see in the tooltip an html page between the two anchors a2 and a3.

The answer to this question gives a good way to show without using javascript, but just html and css. I would really prefer not using javascript, but please feel free to use it if that can greatly ease the task, and if you do so, please use no more libs other than jQuery.

Community
  • 1
  • 1
Bruce
  • 1,608
  • 2
  • 17
  • 29
  • it would be very complicated to have elements all over the page moving a `div` around without javascript imo. – 8eecf0d2 Feb 16 '16 at 21:10
  • 1
    It's a bit hard to grasp what you exactly want to achieve, especially since you already linked to a solution that doesn't uses javascript. – Mathias W Feb 16 '16 at 21:33
  • @brod sure, then just use javascript. – Bruce Feb 17 '16 at 02:01
  • @MathiasW Using javascript is totally fine, as long as tooltip by hovering shows the content between a2 and a3. – Bruce Feb 17 '16 at 03:24

0 Answers0