|
Posted by marss on 07/05/07 06:53
johnebull...@hotmail.com wrote:
> I am using an image input object to return the coordinates of a mouse
> click in a form submit. This is working fine with one exception. In
> IE the (x,y) are relative to the image, but in Firefox they are
> relative to the frame. For example, a click on the image in IE
> returns (5,5) but in Firefox the same location click returns (75,39).
> Here is the html from the page:
>
> <INPUT TYPE='image' STYLE='position:absolute;left:70;top:34;'
> ID='lbl_image' NOSAVE ALIGN='top' BORDER='0' WIDTH='300' HEIGHT='100'
> SRC='../../../cgi-bin/gtrtlm/c_lbl_image.cgi>
>
Try this approach:
<span STYLE='position:absolute;left:70;top:34;'>
<INPUT TYPE='image' STYLE='position:relative;' ID='lbl_image' ... >
<span>
Regards, Mykola
http://marss.co.ua
[Back to original message]
|