Re: Images in Horizontal rules......

S.N.Brodie@ecs.soton.ac.uk
Sat, 22 Jun 1996 19:04:54 +0100 (BST)


From: S.N.Brodie@ecs.soton.ac.uk
Message-Id: <10795.9606221804@strachey.ecs.soton.ac.uk>
Subject: Re: Images in Horizontal rules......
To: www-html@w3.org
Date: Sat, 22 Jun 1996 19:04:54 +0100 (BST)
In-Reply-To: <ljCzx4uYOFUM089yn@stack.urc.tue.nl> from "Arnoud "Galactus" Engelfriet" at Jun 22, 96 07:09:57 pm

Arnoud "Galactus" Engelfriet wrote:
> 
> By the way, if you resize an imagemap, the mapper program is going to
> have a few problems with the pixels the browser inserted to resize the
> image to the requested size.

I store the original size of the image (in pixels) with the image, and
then calculate the position of the mouse click within the displayed
version as a percentage of the displayed width & height and multiply
appropriately by the original width & height.  Isn't this how other
browsers maintain the consistency?

-- 
Stewart Brodie, Electronics & Computer Science, Southampton University.
http://www.ecs.soton.ac.uk/~snb94r/      http://delenn.ecs.soton.ac.uk/