Javascript/DHTML/CSS menu from brainjar.com

H

Hexkit

I have the menu code from the www.brainjar.com. In safari, IE or
Firefox the secondary drop down fades out too quickly and users are not
able to make a selection. It looks like the culprit is this piece of
code.

I want to add a piece of code that gives user 5 or 10 seconds before it
fades out the secondary menu. Help.

function menuMouseover(event)
{

var menu;

// Find the target menu element. !!!!!!!! @@@@@@@

if (browser.isIE)
menu = getContainerWith(window.event.srcElement, "DIV", "menu");
else
menu = event.currentTarget;

// Close any active sub menu. !!!!!!! @@@@@@@@@@

if (menu.activeItem != null)
//close menu or fad out after 10 seconds
closeSubMenu(menu);
 
R

Randy Webb

Hexkit said the following on 9/26/2005 1:52 PM:
I have the menu code from the www.brainjar.com. In safari, IE or
Firefox the secondary drop down fades out too quickly and users are not
able to make a selection. It looks like the culprit is this piece of
code.

I want to add a piece of code that gives user 5 or 10 seconds before it
fades out the secondary menu. Help.

function menuMouseover(event)
{

var menu;

// Find the target menu element. !!!!!!!! @@@@@@@

if (browser.isIE)
menu = getContainerWith(window.event.srcElement, "DIV", "menu");
else
menu = event.currentTarget;

// Close any active sub menu. !!!!!!! @@@@@@@@@@

if (menu.activeItem != null)
//close menu or fad out after 10 seconds
closeSubMenu(menu);

Ditch the whole menu as it is based on browser detection and as such is
general garbage not worth using.
 

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

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top