By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,964 Members | 1,810 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,964 IT Pros & Developers. It's quick & easy.

dynamic positioning

P: n/a
Hi ALL,

I have a rather annoying problem with Mac IE 5.2. I use a javascript
function to determine the x, y position of the upper left corner of
this image of the US. Since this image can be placed anywhere in the
browser, the x, y position is not always (0,0). I am also trying to
lay several dot images on top of this image so that when you click the
dot the user can find out more information about certain states. So I
determine the x, y position and add certain pixels so that the dots
will be placed in the correct places in relation to the US image.

This works well with PC's IE. However, when I open this in Mac IE, the
dots are either shifted too high up or too low in relation to the US
image. Strange thing is, when I resize the browser, the dots literally
jump to their correct places. I'm out of ideas as to how I can fix
this problem. Any input will be greatly appreciated.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 24 Feb 2005 15:34:44 -0800 gi****@gmail.com wrote:
Hi ALL, I have a rather annoying problem with Mac IE 5.2. I use a javascript
function to determine the x, y position of the upper left corner of
this image of the US. Since this image can be placed anywhere in the
browser, the x, y position is not always (0,0). I am also trying to
lay several dot images on top of this image so that when you click the
dot the user can find out more information about certain states. So I
determine the x, y position and add certain pixels so that the dots
will be placed in the correct places in relation to the US image. This works well with PC's IE. However, when I open this in Mac IE, the
dots are either shifted too high up or too low in relation to the US
image. Strange thing is, when I resize the browser, the dots literally
jump to their correct places. I'm out of ideas as to how I can fix
this problem. Any input will be greatly appreciated.

Then don't rely on the browser window to determine the starting point.
Use a <div> box and position the box accordingly.
Now it won't matter where the map is in the window, the x,y points for the
map will be the same regardless.

If you're using the upper left corner of the USA map as [0,0], then you will
have negative numbers for some areas. Specially on a "flat" style map.
The entire map should be housed in a gif or jpg image, then your [0,0]
starting point will always be the upper left corner of the image.

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.