dynamic positioning

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ginkim@gmail.com

    dynamic positioning

    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.

  • Richard

    #2
    Re: dynamic positioning

    On 24 Feb 2005 15:34:44 -0800 ginkim@gmail.co m wrote:
    [color=blue]
    > Hi ALL,[/color]
    [color=blue]
    > 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.[/color]
    [color=blue]
    > 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.[/color]


    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.



    Comment

    Working...