Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. getXYclicked() on an image, on a webpage

getXYclicked() on an image, on a webpage

Scheduled Pinned Locked Moved Web Development
javascripthelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ricardo Ramalho
    wrote on last edited by
    #1

    Hi! I need to do something in Javascript/DHTML wich i dont know if it's possible at all. I'd like to click on an image, and get the (x,y) point (on the image) that i clicked on. Is this possible? Thank you in advance for any help! :)

    Ricardo

    R R 2 Replies Last reply
    0
    • R Ricardo Ramalho

      Hi! I need to do something in Javascript/DHTML wich i dont know if it's possible at all. I'd like to click on an image, and get the (x,y) point (on the image) that i clicked on. Is this possible? Thank you in advance for any help! :)

      Ricardo

      R Offline
      R Offline
      RichardGrimmer
      wrote on last edited by
      #2

      Hook up an onmousedown handler, which looks at event.clientX / event.clientY

      "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

      1 Reply Last reply
      0
      • R Ricardo Ramalho

        Hi! I need to do something in Javascript/DHTML wich i dont know if it's possible at all. I'd like to click on an image, and get the (x,y) point (on the image) that i clicked on. Is this possible? Thank you in advance for any help! :)

        Ricardo

        R Offline
        R Offline
        Rameez Mohammed
        wrote on last edited by
        #3

        hey..u can do it simply... using AJAX -Jaavascript..there are coordinates like OFFsetX..and something like that...go to the w3schools.com for javascript functions..u can do it..i hav done bfore..

        Rameez Mohammed India

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups