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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:09:18+00:00 2026-05-28T05:09:18+00:00

I have an area map using rect coordinates to highlight tables of a floor

  • 0

I have an area map using rect coordinates to highlight tables of a floor plan that are occupied. Occupied tables will, when you hover over them, display the name of the company. Easy enough.

What I want to do is take those coordinates and, using a div class for each table’s coordinate, have a darker opacity over it for visual reference. It’s easy enough to calculate the top/left value for each table as well as calculating the width and height. I just don’t know how to take those values in jQuery to add this feature. Here’s a code snippet.

<img src="images/floor_plan_2011_small.png" alt="" usemap="#fp" />
<map name="fp" id="fp">
    <area shape="rect" coords="419,264,439,285" href="javascript://" title="Booth 73" alt="Booth 73" />
    <area shape="rect" coords="141,366,164,385" href="javascript://" title="Booth 62" alt="Booth 62" />
    <area shape="rect" coords="119,385,142,402" href="javascript://" title="Booth 64" alt="Booth 64" />
</map>
  • 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-28T05:09:19+00:00Added an answer on May 28, 2026 at 5:09 am

    Don’t bother with an image map. There’s no point:

    <div class="map">
        <img src="images/floor_plan_2011_small.png" />
        <a style="top:419px; right:264px; height:20px; width:21px" href="javascript://" title="Booth 73" />
        <a style="top:141px; right:366px; height:23px; width:19px" href="javascript://" title="Booth 62" />
        <a style="top:119px; right:385px; height:23px; width:27px" href="javascript://" title="Booth 64" />
    </div>
    

    Add this to your stylesheet, and you’re done:

    .map {
        position: relative;
    }
    .map a{
        position: absolute;
        display: block;
        background: black;
        opacity: 0.1;
    }
    .map a:hover{
        opacity: 0.5;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file that contains multiple lines of data, e.g: dfscmd /map \SERVER\PATH\AREA\testuser
In my XUL I have the following code fragments: <map name=KeypadMap> <area href=javascript:pad('A') coords=1,1,31,31
If I have a development area that I deleted files from a certain folder/directory,
I have a div (sub area of page with scroll bar) that has some
I have created one 'sub area' item 'Site Map' of CRM 2011. My requirement
I have acquired Digital Elevation Maps(Height Map of Earth) of some area. My aim
I have an image with an associated image map (below) and I'm using jQuery
I have a large high-resolution image that I am using for an overlay using
i have got center of map using map.getCenter(); and i got current zoom of
I am using an image map which contains a lot of <area> tags. I

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.