Forum Moderators: open

Message Too Old, No Replies

Fetching Cordinates

to get (X,Y) value of any character

         

kadnan

4:53 pm on Mar 3, 2006 (gmt 0)

10+ Year Member



Hello

Sorry if i am not making sense,I want to know that is there anyway to fetch cordinates of text ,that is some gotoxy() equivalent?What i am looking for that if a "Character" is clicked or whatever,i can get its cordinates.Is it possible?

Thanks

DrDoc

2:52 am on Mar 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it is clicked, yes ...
You will be able to determine this through the event.

Don't remember the exact name of the properties, but clientX and clientY ring a bell. Not sure if that's the standard or IE property, but it should get you started.

event.clientX :)