Solved

Floating menus overlapping !

Posted on 2010-09-07
3
440 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
  • 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now