Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recommend a good flyout menu, please

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hi guys,

I've spent nearly 3 hours looking for a free stable and crossbrowser vertical fly-out menu with unlimited sublevels.
It would be best if it could be based on prototype.js which I already use on the site.
Also, the categories should be ordered with nested divs instead of a javascript array.

Any good recommendation?

Thanks for the help!
 
Use the Suckerfish menu solution. I don't know if this is what you refer to as a "flyout menu" - but you can check it out and see it does the trick. It's certainly simple to implement and requires javascript only for IE6 (and that doesn't rely on any javascript framework).

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Thanks Jeff,

Pardon me if I'm wrong but, in order to use the Suckerfish method, you have to know in advance how many sublevels you will have, right?

I'm looking for a script that has all the positionning calculated with Javascript, which would allow unlimited sublevels. The CSS should only be used for the appearance of the menu boxes.

Thanks again :)
 
Hi

Based on my test I would say SuckerFish is suitable for you.
[ol]
[li]Open in FireFox[/li]
[li]Open FireBug[/li]
[li]Do once :
Code:
n=document.getElementById('nav')
l=document.createElement('li')
n.appendChild(l)
a=document.createElement('a')
a.href='#'
a.innerHTML='Plus'
l.appendChild(a)
[/li]
[li]Repeat unlimited times for unlimited sublevels :
Code:
u=document.createElement('ul')
l.appendChild(u)
l=document.createElement('li')
u.appendChild(l)
a=document.createElement('a')
a.href='[URL unfurl="true"]http://example.com/'[/URL]
a.innerHTML='Sub Plus'
l.appendChild(a)
[/li]
[/ol]
Or I misunderstand you ?

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top