473,326 Members | 2,255 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,326 software developers and data experts.

Dynamically position DIV in Netscape 6 & 7??

Hello,
I found a great script that lets me create and position a DIV element
as if it were a popup. It works great in IE 5.x and above and
Netscape 4.7x, but it doesn't work in Netscape 6 or 7. Specifically,
in NS 6 and 7, it creates the 'popup' in the upper left corner but
never repositions it or hides it as it does in IE or NS 4.7x.

I've got the page here:

http://brad.melendy.com/main/test/popup.htm
I believe I've traced part of the problem to the style using a
variable for the width and height values. If I replace the variables
with hard coded numbers, it positions in NS 6 and 7, but that defeats
the purpose for me as I want it to center on the current browser's
width and height.

Thanks in advance for any help!

.....Brad
Jul 20 '05 #1
1 2537
Turns out that Netscape 6 or 7 just can't deal with a variable being
referenced in the DIV, but by replacing it with a percentage, I was
able to get the effect I was after of centering the box on the
browser.

br**@melendy.com (Brad Melendy) wrote in message news:<c5*************************@posting.google.c om>...
Hello,
I found a great script that lets me create and position a DIV element
as if it were a popup. It works great in IE 5.x and above and
Netscape 4.7x, but it doesn't work in Netscape 6 or 7. Specifically,
in NS 6 and 7, it creates the 'popup' in the upper left corner but
never repositions it or hides it as it does in IE or NS 4.7x.

I've got the page here:

http://brad.melendy.com/main/test/popup.htm
I believe I've traced part of the problem to the style using a
variable for the width and height values. If I replace the variables
with hard coded numbers, it positions in NS 6 and 7, but that defeats
the purpose for me as I want it to center on the current browser's
width and height.

Thanks in advance for any help!

....Brad

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: sookean | last post by:
Hi, I have a jsp with some list box. And when user selects an option in the list box, I would then generate a url to direct the user to the correct page. The url is of the form:...
1
by: F | last post by:
I'm trying to open a window in a specific position of the screen with this script: window.open('window.htm','mywindow','width=250,height=350,screenX=20,screenY =100') it works with Netscape...
10
by: Randy Webb | last post by:
This page: http://www.hikksworld.com/loadJSFiles/ Is one where I was testing the ability of browsers that can/can't dynamically load a JS file with one of the three methods: 1)Changing the src...
1
by: J. Potts | last post by:
Just out of curiosity, has anyone run into this problem? Someone where I work put a set of pages together with the following in the style sheet: BODY { position: absolute; margin-top: 0mm;...
9
by: pablo | last post by:
Dear NGers, I would like to change the alt-text with the changing of the image during a mouseover action. Can document.images.altView be changed dynamically? TIA, pablo
1
by: engwar | last post by:
Not really sure how to ask this. I'm new to CSS/DHTML I want to create something similar to how yahoo and gmail handle the "to" field when you type an email. If you start typing "d" you will...
3
by: SGA Smele | last post by:
Hello, Now I think that there is a simple answer to my problem, but I don't know what it is and I can't work out what I should be searching for on the internet to read up some more about it. ...
4
windows_mss
by: windows_mss | last post by:
When I Select Source & Destination Dynamically, Path Getting Scatter Across The Map... hi, i can able to get the Correct Route and Path for the corresponding Source and destination, like...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.