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

  • Home
  • SEARCH
  • 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 8219623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:14:10+00:00 2026-06-07T13:14:10+00:00

I am making a small web app for my doctor and would like to

  • 0

I am making a small web app for my doctor and would like to make this image’s circles clickable. When they user clicks on one it should change color. I thought I would do this with Jquery and an HTML image map but I wanted to know if anyone else had some sort of idea on how to make this happen?

Thank you!

Main Image

  • 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-06-07T13:14:12+00:00Added an answer on June 7, 2026 at 1:14 pm

    See my implementation: http://jsfiddle.net/riateche/NTkmV/

    You should replace background image to the same without circles. You should fill circles array with coordinates (and optional radiuses) of circles. I’ve added only 4 circles.

    HTML:

    <div id="container">
        <img src="https://i.stack.imgur.com/cQdo2.png">
    </div>
    

    CSS:

    #container { position: relative; }
    .circle {
        width: 10px;
        height: 10px;
        position: absolute;
        border: 3px solid green;
        border-radius: 100%;
    }
    
    .circle.on {
      border-color: red;  
    }
    

    JavaScript:

    var circles = [
      //each item contains x, y and optional size
      [93, 81, 18],
      [44, 173, 18],
      [108, 69],
      [134, 77]
    ];
    
    $(circles).each(function() {
      console.log("ok");
      var obj = $("<div/>");
      obj.addClass("circle");
      obj.css("left", this[0]);    
      obj.css("top", this[1]);   
      if (this[2]) {
        obj.width(this[2]);
        obj.height(this[2]);
      }
      $("#container").append(obj);  
    });
    
    $(document).on("click", ".circle", function(e) {
     $(e.target).toggleClass("on");   
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a small web app in which a user enters a server URL
I am thinking of making an (initially) small Web Application, which would eventually have
I'm making small web service(1) and I decided to use resteasy to make it.
I am making a small web app that allows users to submit html, css
For a small web app I'm making, I need to output sinusoidal test tones
I am a making a small iOS web app with a chat feature. The
I am making a small blog for someone and they want it in 2
I am making a small section of an app (phone and website) that can
So, I'm working on a small web app and I have it to a
We have following problem. Developers frequently need to make small changes to our web

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.