Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 969045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:34:54+00:00 2026-05-16T02:34:54+00:00

I have a webpage with a content image. On this image, I want to

  • 0

I have a webpage with a content image. On this image, I want to highlight a few different items, triggered by the user rolling over the corresponding item in the text on the same page.

I have transparent PNGs that I can use as image overlays to accomplish the highlighting. I know how to make an overlay appear STATICALLY by using span tags (as explained here).

But, I am at a loss how to display a specific overlay ONLY WHEN the user is rolling over some particular piece of text. To visualize what I am trying to do, imagine an image that shows a London Tube map. I want a yellow highlight to appear over a specific station when the pointer is over the name of that station in the text.

Any suggestions, examples, or related tutorials would be much appreciated!

  • Matt
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:34:55+00:00Added an answer on May 16, 2026 at 2:34 am

    This should work. Just replace the SPANs with the PNG image tags. You may also want to use display block instead of display inline for the images.

    <html><head>
        <style>
            .overlay {
                display: none;
                position: absolute;
            }
            #map {
                position: relative;
                border: 1px solid black;
                width: 350px;
                height: 200px;
            }
            #station_A { top: 20px; left: 85px }
            #station_B { top: 150px; left: 180px }
            .hover { color: green }
        </style>
    </head><body>
        <div id="map">
            <span id="station_A" class="overlay">Highlight image here.</span>
            <span id="station_B" class="overlay">Highlight image here.</span>
        </div>
    
        <p>
            <span class="hover station_A">Station Alpha</span> is one example.
            <span class="hover station_B">Station Beta</span> is another.
        </p>
    
      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
      <script>
        jQuery(function() {
            jQuery('.overlay').each(function(i, el) {
                jQuery('.' + el.id)
                    .mouseenter(function() { jQuery(el).css('display', 'inline') })
                    .mouseleave(function() { jQuery(el).css('display', 'none') });
            });
        });
      </script>
    </body></html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an image on my web page like this: <img src=/Images/content/home.png alt= style=float:
I have a requirement that in a webpage I have multiple block of content
I have content on a webpage which is both sent from the server at
I have a webpage that when landed on, will detect a user's physical location
I have a webpage where there are few text fields to be filled up
I have a webpage with a static CSS background, but the content is longer
I have a canvas in my webpage; I create a new Image data in
I have for example the following URL: index.php?q=Content/Uploads/Images/1.jpg I want so that page will
I have a very simple webpage called a.html where I want to click on
I have a web page in which a fair amount of the content is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.