473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.

Jul 23 '05 #1
1 1700
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the...
2
by: Randell D. | last post by:
HELP! Its taken me ages - I'm a newbie and I've compiled bits of code that I've read in this newsgroup over time to create one of my most intricate functions to date... Basically, the script...
4
by: mike eli | last post by:
Hi, I have several absolute positioned elements inside an absolute positioned DIV. I would like one of the nested elements to have a dynamic width. I set it's left and right attributes to 5, so...
1
by: | last post by:
Hello Guys, I am rendering the server controls dynamically using XSLT but having tough time positioning them on the web form the place where I want them to be. To be precise, I have two image...
2
by: tma | last post by:
How does one accomplish "dynamic" menus? For example, I have three items (labels?) on top of each other down the left of my screen. I do not want item 2 to show up in the list unless the user is...
6
by: Paul | last post by:
Hi I have 2 data grids and several controls on a web page. The grids will vary in size, just wondering if the lower grid could be covered by part of the upper grid depending on its size or is there...
2
by: Steve Bottoms | last post by:
Hi, all! Using VB as code-behind in asp.net page... I have a TABLE control which I'm building dynamically. After the table is built, I'm trying to retrieve the HEIGHT property of that table...
6
by: VB Programmer | last post by:
I am creating an online, interactive, art gallery using ASP.NET. I want the user to be able to select (1) a frame type & size, (2) a matte type & color and (3) a picture. I will then display...
4
by: Paul | last post by:
HI I have some controls under a datagrid and the datagrid can have 1 to 10 items. I would like to place some other controls just below the datagrid so need to somehow dynamically place the...
2
Frinavale
by: Frinavale | last post by:
I've created a ASP.NET control that displays a "book" of schedules. It dynamically displays scheduling times and allows the user to page through the schedules. It also lets the user edit the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.