Google gave this as one of the first hits: http://www.hscripts.com/
scripts/JavaScript/cursor-position.php
I don''t see how you can do this without javascript, unless your talking
about the click position on a submit image:
"The image input type specifies a graphical submit button. The SRC
attribute must be included to specify the URI of the image. The ALT
attribute should be used to give replacement text for those not loading
images. ALT is a new addition in HTML 4.0; many browsers rely on either
the NAME or VALUE attribute as alternate text, so authors should use all
three attributes for the same purpose where possible. The topic of
graphical submit buttons for text users is discussed in detail in the
article INPUT TYPE=IMAGE for text users?.
"When the graphical submit button is clicked, the coordinates of the
click are sent with the form submission as name.x=x-value and
name.y=y-value where name is the value of the NAME attribute, x-value is
the click''s pixels from the left of the image, and y-value is the
click''s pixels from the top of the image. The USEMAP attribute combined
with TYPE=image defines a client-side image map that can be used with
client-side scripting, but this method is poorly supported. The USEMAP
attribute gives the URI of the defining MAP."
Taken from http://www.htmlhelp.com/reference/html40/forms/input.html.
HTH.
On Wednesday, February 22, 2006, at 8:56 PM, blaimue
wrote:>How can I get the cursor position relative to the page, and store it in
>a variable? (Preferably without using javascript)
>
>Thanks,
>Chris
>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails
Cheers!
--Dave Teare
http://devlists.com - Email list management
http://palmsphere.com - Apps for your hand-held
--
Posted with http://DevLists.com. Sign up and save your time!