[thelist] [CSS-Javascript] can "son of suckerfish" be implemented with timeouts?

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Sun May 1 17:39:31 CDT 2005


Hi folks,

I know it is totally against the spirit of it, but I thought it woud
be nice if suckerfish menu had a little timeout between its menu
openings.

I've tried to implement a solution. But after playing with the code
for about  3-4 hours, I realized that it is harder than I first
thought. When I add bits and pieces to the code, my logic turned into
a more and more complicated piece of spagethi. A few minutes ago, I
was uttering something like:

"what if I hide all child nodes of the li's which are on the same
level of my li and clear all the prescheduled timeout threads which
are going to show sub menus, when I mouse over (or focus) on it and
when I mouse ot (or blur) .. blah blah blah."

At which time, I realized that I've lost my control over the code. I
feel like I'm alone in a large rafting boat jumping over the waves in
an angry river :)

Here's the link, which can give you an idea of what I'm trying to achieve:

http://www.sarmal.com/testcase/suckerfish_timeout.html

(Sorry for the messy source.
I've not deleted the commented out code, I thought it may give some
hint on what I've tried apriori.
The code is ie-specific. But it can be easily made cross-browser, just
my laziness.
When you hover the links, the items will open with 1.5 seconds delay)

As you may guess the code is incomplete. Else I would be screaming
"Eurika!" and  sharing my pleasure with you.

My challange is that; can this menu be made behave like

http://www.htmldog.com/articles/suckerfish/dropdowns/example/

with timeouts of course.

Is there an elegant solution to it. Or is it time to raise the white flag?

Cheers,
Volkan.


More information about the thelist mailing list