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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:44:08+00:00 2026-05-24T22:44:08+00:00

I have a U.S. map that uses the jQuery Maphilight plug-in ( see this

  • 0

I have a U.S. map that uses the jQuery Maphilight plug-in (see this Maphilight demo). My code follows:

$('.map').maphilight();

I have combined it with the jQuery qTip plug-in. I have the qTip tool tips set to show when the user hovers over each <area> on the map. My code follows:

$('area').each(function() {
    $(this).qtip({
        content: $(this).attr('data'),
    });
});

So the ‘highlighting’ and the ‘tool tip’ both occur when the user moves over each <area>.

I also have a legend. Using the Maphilight demo above, the legend would have pink, purple, green, and yellow. I want to move over the, e.g., yellow legend key and highlight all of the yellow fields.

To do this, I set a class attribute on each state <area> to its actual color. On each legend-color <area> I set a class="color" and myColor equal to actual color. I have the following JavaScript, which as per the Maphilight documentation, simulates a mouseOver on each <area> to activate the highlighting.

<area class="color" myColor="yellow">
$('.color').mouseover(function() {
    $('.' + $(this).attr('myColor')).mouseover();
});

$('.color').mouseout(function(e) {
    $('.' + $(this).attr(myColor)).mouseout();
});

However, as you can imagine, this also brings up the tool tip for every single state of that color. How can I activate only one mouseOver event when two are bound?

This must be a common jQuery problem that is certainly outside the bounds of this particular scenerio, but I am unsure how to search for it. Is there typically a method in each jQuery plug-in that allows you to simulate the effect on one particular selection (i.e., $('area#some_id'))?

  • 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-24T22:44:09+00:00Added an answer on May 24, 2026 at 10:44 pm

    It looks like maphilight is namespacing its events. So, you should be able to do this:

    $('.' + $(this).attr(myColor)).trigger("mouseover.maphilight");
    

    EDIT: For info on namespaced events: http://docs.jquery.com/Namespaced_Events

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

Sidebar

Related Questions

I have a Map that uses a Set for the key type, like this:
I have an application that uses the mapview-overlay-manager code to draw map markers on
I have an app, that uses mapview. i can only see the map, when
I have a pointer to a map that I am trying to delete (this
Ok, so I have this jquery function to that grabs the checkbox's value and
I have a Google Map API v3 map object on a page that uses
Is there some implementation of java.util.Map that does not uses HashCode? I have the
I have an intranet web app that uses CSS httpFolder to map a webdav
I have an image map that uses a third party script(mapper.netzgesta.de) to highlight the
I am developing sample application that uses Google Map API. I have generated Google

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.