473,387 Members | 1,520 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,387 software developers and data experts.

Another strange (list related) NN/Firefox Bug

Hi!

Here's a followup to my earlier post http://tinyurl.com/dthhs
(Full URL:
http://groups-beta.google.com/group/...f447eb6e5afd7/)

In the code below, I've used lists to implement a drop-down menu, and
it works well in IE, but is sort of bugg in NN/FF. You'll notice that
when moving right down the list to the last item ("Asia"), the list
will sometimes fail to collapse, if you exit fom the bottom. Strangely,
this problem does not occur when the cursor exits the list at the side
as shown below.

|----------------------|
| |
No problems here -> | Asia | <- No problems here
| |
|----------------------|

^
|
PROBLEMS
WHEN EXITING
HERE

Is this doccumented? Is there a work-around? Its trivial but annoying.

Thanks,

- Olumide

////////////// HTML code ///////////////
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Untitled Document</title>

<script type="text/javascript">

function hideMenu() {
document.getElementById("menuContainer").style.dis play =
"none";
}

function showMenu() {
document.getElementById("menuContainer").style.dis play =
"block";
}

</script>

<STYLE>
li {
background-color: #FFFFFF;
font-weight: normal;
font-family: arial;
font-size: 12px;

text-align: center;
margin: 0;
padding: 0;
border: 1px solid black;
height: 20px;
}

ul{
margin: 0;
padding: 0;
list-style: none;
width: 200px;
}

ul ul {
display: none;
}

a {
display: block;
width: 200px;
text-decoration: none;
color: #000000;
}

</STYLE>

</head>

<body>

<ul onMouseOver="showMenu()" onMouseOut="hideMenu()">
<li><a href="#">Continents</a></li>
<ul id="menuContainer">
<li><a href="#">Europe</a></li>
<li><a href="#">Africa</a></li>
<li><a href="#">America</a></li>
<li><a href="#">Asia</a></li>
</ul>
</ul>

</body>
</html>

Jul 23 '05 #1
2 1271
5...@web.de wrote:
Hi!

Here's a followup to my earlier post http://tinyurl.com/dthhs
(Full URL:
http://groups-beta.google.com/group/...f447eb6e5afd7/)
In the code below, I've used lists to implement a drop-down menu, and
it works well in IE, but is sort of bugg in NN/FF. You'll notice that
when moving right down the list to the last item ("Asia"), the list
will sometimes fail to collapse, if you exit fom the bottom. Strangely, this problem does not occur when the cursor exits the list at the side as shown below.

|----------------------|
| |
No problems here -> | Asia | <- No problems here
| |
|----------------------|

^
|
PROBLEMS
WHEN EXITING
HERE

Is this doccumented? Is there a work-around? Its trivial but

annoying.
Lest I forget, the same thing happens in NN/FF when you quickly run the
mouse/cursor out of the list i.e. it does not collapse.

- Olumide

Jul 23 '05 #2
50***@web.de wrote:
5...@web.de wrote:
Hi!

Here's a followup to my earlier post http://tinyurl.com/dthhs
(Full URL:


http://groups-beta.google.com/group/...f447eb6e5afd7/)
In the code below, I've used lists to implement a drop-down menu, and
it works well in IE, but is sort of bugg in NN/FF. You'll notice that
when moving right down the list to the last item ("Asia"), the list
will sometimes fail to collapse, if you exit fom the bottom.


Strangely,
this problem does not occur when the cursor exits the list at the


side
as shown below.

|----------------------|
| |
No problems here -> | Asia | <- No problems here
| |
|----------------------|

^
|
PROBLEMS
WHEN EXITING
HERE

Is this doccumented? Is there a work-around? Its trivial but


annoying.
Lest I forget, the same thing happens in NN/FF when you quickly run the
mouse/cursor out of the list i.e. it does not collapse.

- Olumide


Same answer as last time - using onmouseover/out intrinsic events for
this in Firefox (and maybe Geko browsers in general?) is prone to
failure. Either use pure CSS menus or use onclick to dropdown/rollup
menus.

The ones here work in most popular browsers:

<URL:http://www.howtocreate.co.uk/tutorials/testMenu.html>
--
Fred
Jul 23 '05 #3

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

Similar topics

6
by: Stan Brown | last post by:
http://www.acad.sunytccc.edu/instruct/sbrown/stat15/demo.htm http://www.acad.sunytccc.edu/instruct/sbrown/npscreen.css The first table is floated right (class="fr"). Text does not flow around...
13
by: John | last post by:
Hi all: In my code I define a class with inline constructor. But it does not work. I describe the class as below: myclass{ public: myclass(int a, int b) { r1 = a; r2 = b;} protected:
9
by: Christian Hubinger | last post by:
Hi! I've implemented some DropDown list in ASP.NET that use Ajax to fetch the data from the server. The javascript is written to call cascading to the bottom most dropdown in order to update...
1
by: Mike the Canadian | last post by:
I am having a strange problem with field verification in a form. The JavaScript below works just fine in Firefox but in IE. "license" is a pull-down list and "requiredDiscount" is a text field....
1
by: newspost2000 | last post by:
If anyone could help me out here. I am the webmaster of the following corporate website: http://www.otpp.com/. When I load this page in IE or Netscape for PC the postion of all of the elements on...
2
by: Aggelos | last post by:
Hello, I am trying to export/import about 50.000 records in a csv file which a user can upload or downlaod from the browser. The problem is once I hit export Firefox comes with a dowload...
8
by: MMAS | last post by:
Hey everyone -- Curious about some strange behaviour I'm seeing that seems to be related to my lack of understanding on how generics work in C#. Here's some simplified code (sorry for strange...
6
by: raknin | last post by:
Hi I am running ajax call to my appache local server on my development server, which is also my testing server, I run the site from the server (the server running php,mysql), what I get back is a...
2
by: scdowney | last post by:
First and foremost, thank you in advance for any attempts to help me out. I am working on a project with work, and it requires I use CSS selectors to locate elements within a webpage. For 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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.