Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Mozilla Drop-down menus head-scratch

Thread Tools

Mozilla Drop-down menus head-scratch
Posts: n/a
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.


Reply With Quote
Posts: n/a
I wrote:

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
....I'm just surprised even IE would do somethign that stupid. I MEANT
to do it to the table...


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webpages drop down menus problem with Mozilla? bbnn Firefox 2 01-04-2005 01:00 AM
Select menus above flyout menus? help? HTML 8 12-09-2004 12:54 PM
My CUSTOM Versions Of Mozilla Fiorefox & Mozilla Thunderbird Norvin Adams III Firefox 6 07-13-2004 03:26 PM
Missing Web Page Nav Menus -- Mozilla 1.6 Gary Firefox 2 04-05-2004 04:47 PM
mozilla 1.5 from mozilla 1.4 Disco Firefox 6 11-07-2003 04:34 PM