473,624 Members | 2,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mozilla Drop-down menus head-scratch

I am doing drop-down menus for a site I'm developing (not my idea,
neadless to say.) I have a nice robust Javascript that handles it, and
it actually WORKS, works across browsers even! How unexpected!

However, I have one TINY problem. In netscape, ON OCCASION, the
drop-down menus will show up halfway down the page. Reloading fixes
this. Resizing the windows fixes this. (It's asising, I think,
because of the Mozilla reansparent-picture-image-location hack for
determing position of the original menu on the page.) And it doesnt'
appear consistently.

This is what I THINK is going on- when I double-click to refresh
instead of single, the document re-loads, but some part of the layout
beign generated by the first-click isn't properly cleared. (this bug
onyl shows up when the page reloads funny, but it's often enough I want
it not to happen, because it's MASSIVELY ugly.) Resizing the window
causes it to recalculate the layout positions of those transparent
gifs, and so it fixes itself.

The script I have it really good. (It was someone else's, which I've
mads some additiosn to.) I'd prefer NOT to gut and rebuild if I can.
Especially not for a netscape-only problem.

Is there a way to... 'poke' the document resize event when the page is
finished loading and cause it to recalculate this? I think (provided
it doesn't cause a page redraw) that would solve my problem, and it's
simple enough I don't mind it as a concession to the browser.

Or, has anyone else encountered this and have an alternate solution?
Am I wrong on the cause? Etc.

Technical: the dropdowns are absolutely-positioned DIV's with a z-index
of 20 whose position is determined by the location of a transparent
image before the to-level navigation option they're attached to.

-Derik

Jun 22 '06 #1
1 1846
I wrote:
<snip>

Slight update! I removes a tiny bit of odd CSS layout that was working
in IE and not Mozilla, and the problem stopped.
(Why the code would cause this problem instead if simply being
non-supported, why the flag to offset by 10 pixels was offsetting by
400, and why Mozilla would flailingly TRY is beyond me.)

It was really WIERD code though. Instead of offsettign the table, I
had flagged every CELL in the table to be relatively offset down 10
pixels.
....I'm just surprised even IE would do somethign that stupid. I MEANT
to do it to the table...

-Derik

Jun 22 '06 #2

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

Similar topics

0
1667
by: Neil Zanella | last post by:
Hello, I just ran into an interesting problem with cookies while using PHP 4 and Mozilla 1.6. Basically, I have been using PHP on a site called: foo.bar.net?script.php Within that script I call setcookie() and manipulate cookie variable $_COOKIE. All works fine
4
1633
by: Hal Halloway | last post by:
The php.net site is crashing Mozilla. esp when the go with us3.php.net or something like that. Try browsing around the site and you'll see. Mozilla 1.7.5 Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217
0
1770
by: melledge | last post by:
Mozilla Foundation Co-Hosts Europe's Leading XML and Web Developer Conference XTech 2005 Conference to Bring Together XML and Web Technology Thought Leaders
15
7273
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the same problem. Internet Explorer 6 and Opera 7 have no problems with it. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> <script>document.write (window.history.length);</script>
8
2042
by: nick | last post by:
In the web site http://greywolfdesign.com , there is a pop-up menu (when mouse over 'Portfolio' menu item), it always works well when using IE (6). However, when using Mozilla 1.6, the popup works well for all the pages except the 4 pages which can be opened by click the menu link in the popup. In these four pages, the popup will always be shown at the leftmost of its parent div (flow) instead of under the 'Portfolio' menu item. When...
3
1654
by: Jim Ley | last post by:
Hi, It seems the mozilla guys have chosen another (almost certainly poor choice in my initial thoughts) of having document.all evaluate to false, but document.all catch the chicken event - also document.all.tags will work. It seems that the document.all not evaluating to true is to stop the really dumb object assumption scripts to fail and the document.all scripts that don't bother with any object detection to all of a sudden
10
3201
by: David | last post by:
Hi everyone, Hoping there are some .js/browser experts out there that can help with this weird problem. I have made a swap div routine and applied the events to menu buttons with a closer layer behind the menus. The closer div has a lower index than the submenu divs so it appears behind them. The closer div contains a transparent gif with an event applied to it to close all of the divs when moused over.
11
1756
by: dhplank | last post by:
Hello everyone, I've developed a calendar program in javascript, and up until now I've done most of my testing using Mozilla and Firefox. Everything works fine, but when I try to use Internet Explorer my response time is sometimes 50 times slower than using Mozilla. I know I haven't given you much to go by, but I'm not looking for an answer so much as an approach to debugging the problem. For example, does anyone here know of a good...
7
3053
by: johnny15 | last post by:
I have used below the following parameters in my stylesheet.This give me a grey background around my tables that contains the sites content. This works fine using Microsoft Internet Explorer but does not work on Mozilla and Netscape browsers as you can see at www.windsoraccess.co.uk .. Could someone let me know how I can resolve this issue. Thanks in advancce body {font-size: 8pt;
0
8231
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8168
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7153
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4167
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2603
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1474
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.