Solved

Floating menus overlapping !

Posted on 2010-09-07
3
570 Views
Last Modified: 2012-05-10
Hi


I have a 4x3 table of images.
When the user move the mouse over an image, a floating menu will appear so the user can select a menu item.

The code is working fine if I only have one cell.

However, I have a 12 adjacent cells in a 3x4 table. The problem is when the user move the mouse in order to select a floating menu item, the mouse eventually will move over another cell (image) and will cause the other cell to show its floating menu.

Is there a way to avoid that? like to disable all the other floating menus if there is an open menu?  

I put the whole project together in one zip file. You can unzip it and figure out the problem!


    problem.zip

Not to be rude, but PLEASE AVOID "COPY AND PASTE LINKS" ANSWERS!
0
Comment
Question by:HandyManny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Expert Comment

by:Matthew Kelly
ID: 33622748
Do you need the 2 second timeout?

If you change: var timeout = 2000; to var timeout = 0;

It will only display one at a time.
0
 

Author Comment

by:HandyManny
ID: 33623817
If I set the timeout = 0 the user won't able to catch the floating menu!
0
 

Accepted Solution

by:
HandyManny earned 0 total points
ID: 33623861
I found the solution and it is so simple!
I just added a flag which equals 0 initially.
When I open a menu I check if the flag value = 0, in that case I put flag = 1 and open the floating menu. otherwise I do not open the floating menu.
When I close a menu I put the flag value = 0 again!

I have attached the same file after applying the solution

problem.zip
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question