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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:59:59+00:00 2026-06-11T23:59:59+00:00

I am developing a smart phone app and I am trying to place a

  • 0

I am developing a smart phone app and I am trying to place a ‘note’ or a ‘marker’ over an image. I have not got a potential solution for this, I am starting out new with this sorta thing.

I am using http://www.icenium.com/ for the app distribution.

Is it possible to tap / click somewhere and add an element (div) to be always at that point on the image with javascript?

Thanks!

  • 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-12T00:00:00+00:00Added an answer on June 12, 2026 at 12:00 am

    Here’s some code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
            <script language="JavaScript">
                function point_it(event){
                    pos_x = event.offsetX?(event.offsetX):event.pageX-document.getElementById("pointer_div").offsetLeft;
                    pos_y = event.offsetY?(event.offsetY):event.pageY-document.getElementById("pointer_div").offsetTop;
                    document.getElementById("imgcr").style.left = (pos_x-7)+"px" ;
                    document.getElementById("imgcr").style.top = (pos_y-8)+"px" ;
                    document.getElementById("imgcr").style.visibility = "visible" ;
                    document.pointform.form_x.value = pos_x;
                    document.pointform.form_y.value = pos_y;
                }
            </script>
      </head>
      <body>
        <form name="pointform" method="post">
            <div id="pointer_div" onclick="point_it(event)" style = "background-image:url('http://www.woofers.net/communities/6/004/008/640/226/images/4555331877.jpg');width:500px;height:333px;">
            <img src="http://galeriejeanclaudebergeron.ca/images/redDot.png" id="imgcr" style="position:relative;visibility:hidden;z-index:2;"></div>
            You pointed on x = <input type="text" name="form_x" size="4" /> - y = <input type="text" name="form_y" size="4" />
        </form>
      </body>
    </html>
    

    Copy paste this into a new file and open it on your browser. In this example I move a div to the position, but you’ll have to clone it if you want multiple points

    Try it on jsfiddle

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

Sidebar

Related Questions

I am developing an app and have been able to start a phone call
I'm developing an app for Windows Phone 7 that populates a WrapPanel with a
App Store We have been developing an app for quite some time now for
I am currently developing an app that seems to hang my Windows Phone 7
I am developing a small scale app using smart gwt 2.4. I chose smart
I am Developing one Windows Smart Phone - 6 Application using C# in .Net
Im currently developing an application for mobile phones (smart phones). My mind have picked
I'm developing an app for WP7 (VS2010 Express for Windows Phone RTM and WP
Im currently developing an application for mobile phones (smart phones). My mind have picked
I'm developing an app which should work on a phone and on a tablet

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.