Click to See Complete Forum and Search --> : Checking to see if clicked?!?!?!


konithomimo
01-17-2005, 04:48 PM
Is there a way to check and see if someone clicks in the center of the screen, or within a certain area around the center of the screen??

I figure that if you take in the persons screen resolution, find the middle, and then make the area based on the center that you could. Im just not sure about how to see if someone clicks in the center of the screen.

If you could, please post some code that would find the persons resolution, then find the center of the screen, then designate a box around the center point, and then check to see if the person clicks inside of that box. I could do it in C++, Scheme, or a few other languages, but Im not that sure about HTML or javascript.

Thanks in advance

ray326
01-17-2005, 06:01 PM
... but Im not that sure about HTML or javascript. And this isn't the place to learn about them. Try the DHTML forum.

konithomimo
01-17-2005, 06:06 PM
This is a java room, so if someone can write something in java, then i can put it into javascript. That is why i asked here. If you can't answer the question then please dont reply. thank you

And yes, i am aware that java is not javascript, but i can get it changed into javascript hopefully.

ray326
01-17-2005, 06:27 PM
No, you can't. A java application can detect the position of a click on an AWT or Swing panel but nothing of how it is done is translatable to Javascript detecting a click on a web page. This is the pervue of the DHTML guys, who probably know the code for it off the top of their heads.

konithomimo
01-17-2005, 07:33 PM
Ok..thank you