Jump to content
zebranym

Image and MouseOver - display text on hover

Recommended Posts

Hi, I'm new on here, and looking for some help with HTML, CSS code for how to add mouseOver to an Image with mutliple areas on the same image so that when you hover over certain areas on the diagram, it displays text.

 

I have used plugins for this type of thing where you add hotspots to the image which is fine but not what I'm looking for with this particular project.

 

This website has the sort of thing I'm after - see the interactive graphic on the 'Our Process' page - http://www.moffatts.com/#url

 

I have very basic understandig of html, and css but I'm learning loads on W3Schools!

Edited by zebranym

Share this post


Link to post
Share on other sites

Once you feel confident with your HTML and CSS you should start learning Javascript. The task you want to do has to be done with Javascript.

Share this post


Link to post
Share on other sites

For a simple mouseover it does NOT need to be done with JavaScript, you could get away with it using css alone, if you wish the hover over area to remain highlighted, and text to remain showing, then yes! JavaScript would be required.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...