Flashing Drop-Down Menu

J

jamaica

I've built a drop-down menu using FrontPage 2003 using layers and behaviors.
The menu works but every time I mouse over any button on any submenu,
the whole submenu flashes. It's more that annoying. I've worked about 20
hours trying to fix the problem, and I spent over an hour on the phone with
Microsoft, to no avail. You can see the problem here:

http://www.ultraclearcom.com/indexMSTest.html

I'm desperate. Thanks so much for your help,
 
J

Jim Buyens

Ah, yes. Let me guess. You got the drop-down menus to open, and you coded
onmouseout behaviors to make them disappear when the mouse moved away from
them. That worked fine.

Then you added some links or other content to the menu leaves, and you
dicovered that moving the mouse over than new content caused the menu leaf to
disappear. So, you added onmouseover events to the new content, in order to
make the menu leaf visible again.

Doesn't work. The menu leaf still disappears,and even though you make it
reappear almost imemdiately, it's only almost. The menu leaf still disappears
and reappears, and that's the cause of your flashing.

The solution is to get rid of all the onmouseout Behaviors in yourmenu
system. Instead, make the menu leaf disppear when the mouse passes *over*
something else.

For example, when you make the menu leaf visible, also make a large
transparent gif file visible. This gif file should lie *behind* the menu
leaf, and all around it.

Then, when the transparent gif gets onmouseover, make *both* the transparent
file *and* the menu leaf invisbile.

For more detailed instructions, browse:

Creating DHTML Menus in FrontPage 2003
http://www.interlacken.com/winnt/tips/tipshow.aspx?tip=28

For a working example, browse:

http://www.interlacken.com/winnt/samples/dhtmlmenu.htm

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
M

Murray

Yep - common enough mistake. I call it 'duelling layers'. A show hide that
shows a layer that masks the mouse event that hides the layer that....

8)

Nice explanation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top