Reply to Re: input type=text and firefox versus ie

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация