Connecting Tech Pros Worldwide Help | Site Map

Another strange (list related) NN/Firefox Bug

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 07:51 PM
50295@web.de
Guest
 
Posts: n/a
Default 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>


  #2  
Old July 23rd, 2005, 07:51 PM
50295@web.de
Guest
 
Posts: n/a
Default 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

  #3  
Old July 23rd, 2005, 07:51 PM
FredOz
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.