Connecting Tech Pros Worldwide Forums | Help | Site Map

Another strange (list related) NN/Firefox Bug

50295@web.de
Guest
 
Posts: n/a
#1: Jul 23 '05
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>


50295@web.de
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Another strange (list related) NN/Firefox Bug


5...@web.de wrote:[color=blue]
> Hi!
>
> Here's a followup to my earlier post http://tinyurl.com/dthhs
> (Full URL:
>[/color]
http://groups-beta.google.com/group/...f447eb6e5afd7/)[color=blue]
>
> 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.[/color]
Strangely,[color=blue]
> this problem does not occur when the cursor exits the list at the[/color]
side[color=blue]
> 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[/color]
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

FredOz
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Another strange (list related) NN/Firefox Bug


50295@web.de wrote:[color=blue]
> 5...@web.de wrote:
>[color=green]
>>Hi!
>>
>>Here's a followup to my earlier post http://tinyurl.com/dthhs
>>(Full URL:
>>[/color]
>
> http://groups-beta.google.com/group/...f447eb6e5afd7/)
>[color=green]
>>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.[/color]
>
> Strangely,
>[color=green]
>>this problem does not occur when the cursor exits the list at the[/color]
>
> side
>[color=green]
>>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[/color]
>
> 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
>[/color]

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
Closed Thread