www.webdeveloper.com
Results 1 to 2 of 2

Thread: how to get position of where I clicked

  1. #1
    Join Date
    Sep 2005
    Posts
    5

    how to get position of where I clicked

    see attached picture. the orange "spinner" icon at the far left is designed to let user control to move the row up or down. It is 19px high. I want to write something like this:

    Code:
    <script language="JavaScript">
    function indexRow(o,e){
       alert('position is '+ (o.offsetY))
    }
    </script>
    <img id="index_1" src="images/buttons/spinner.png" onclick="indexRow(this,event);" height="19" />
    Except, I don't know javascript well enough and obviously there is no such thing as "offsetY"

    Can anyone help with this? thanks!

  2. #2
    Join Date
    Sep 2005
    Posts
    5

    forgot attachment

    I forgot the attachment - should help
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles