Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Floating menus overlapping !

Posted on 2010-09-07
3
Medium Priority
?
577 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
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... …
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…
Suggested Courses

927 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