Hi from York UK
Love the above, but how do they create the hover over hyperlinks, is it a JavaScript thing or good old HTML. I just cant get m,y head around how they’ve created the hyperlinks!
Thanks in advance,
David
Hi from York UK
Love the above, but how do they create the hover over hyperlinks, is it a JavaScript thing or good old HTML. I just cant get m,y head around how they’ve created the hyperlinks!
Thanks in advance,
David
Hi David. It looks like an image map to me. https://en.wikipedia.org/wiki/Image_map
If you look at the source you will see a <map>
element with <area>
s for children.
The hover box is done via javascript. You can have boxes appear on hover with just css, but they won’t follow the cursor like that.
Try viewing with a mobile…
Yes they use maphighlight.js. It turns an image map into areas that can be hovered.
You know…
Alternatively, you could use an image, and list (for your hover content, and AP to achieve this w/o j/s and semantically correct. w/o going into specific code, one of several ways of doing this might be:
just an option.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.