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 523215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:26:04+00:00 2026-05-13T08:26:04+00:00

how can i associate an anchor tag with image maps? Suppose, I hover over

  • 0

how can i associate an anchor tag with image maps?

Suppose, I hover over an anchor tag, it should select the mapped region on the image.

Something like this http://myffi.biz/. This is in flash, but can this be done using image maps? You hover over on the links and it should select the mapped region on the image.

Is this possible? I hope i am clear

  • 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-13T08:26:05+00:00Added an answer on May 13, 2026 at 8:26 am

    Yes, it can be done without Flash but you don’t need imagemaps at all. Just have a hover event fadeIn the correct image on the map, that’s easy to do with jQuery. Something like this might work:

    <ul class="region">
        <li><a href="#" id="europe">Europe</a></li>
        <li><a href="#" id="asia">Asia</a></li>
        <li><a href="#" id="africa">Africa</a></li>
        <li><a href="#" id="australia">Australia</a></li>
    </ul>
    <div id="region-map">
        <div id="region-overlay"></div>
    </div>
    

    And in CSS, you define the region-map as having a background where no regions selected, and region-overlay has different regions selected.

    #region-map, #region-overlay {
        width: 640px;
        height: 320px;
    }
    
    #region-map {
        background: url(map-base.jpg) 0 0 no-repeat;
    }
    
    #region-overlay.europe {
        background: url(map-europe.jpg) 0 0 no-repeat;
    }
    
    #region-overlay.asia {
        background: url(map-asia.jpg) 0 0 no-repeat;
    }
    
    #region-overlay.africa {
        background: url(map-africa.jpg) 0 0 no-repeat;
    }
    
    #region-overlay.australia {
        background: url(map-australia.jpg) 0 0 no-repeat;
    }
    

    And the jQuery code needed:

    $(function() {
        $('ul.region a').hover(function() {
            // Get the current region
            var region = $(this).attr('id');
            // Hide the current overlay, change it's map and change it back.
            $('#region-overlay').fadeOut(200, function() {
                $(this).attr('class', region).fadeIn(200);
            });
        }, function() {
            // Hide the overlay
            $('#region-overlay').fadeOut(200);
        });
    });
    

    This isn’t perfect but should get you started.

    A working example can be found at:

    http://www.ulmanen.fi/stuff/hovermap/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I prevent the image tag that calls the associated image from displaying
I am looking for a list of all file types that can be associated
I CAN get the associated icon just fine, and draw it accordingly, however, I
Can anyone tell me what is the memory usage overhead associated with PHP opcode
I noticed that I can start a program with it's associated handler by writing
I keep hearing from associates about grid computing which, from what I can gather,
PHP treats all arrays as associative, so there aren't any built in functions. Can
Can somebody point me to a resource that explains how to go about having
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
Can you cast a List<int> to List<string> somehow? I know I could loop through

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.