Jump to content


[dev]Slide menu


  • You cannot reply to this topic
4 replies to this topic

#1 Mukke

    Etomite Forum Newbie

  • Member
  • 47 posts

Posted 12 October 2007 - 10:22 AM

hey i found a cool script called slide menu but i wanted to make an etomite version of it
everything works fine but i have no id how to nest the loops as i don't know how many children each parent will heve

as in

parent
->sub
--->sub1
parent2
->sub
--->sub1
----->sub_sub1
----->sub_sub2
--->sub2


and so on
i mean how do i get those looped, if i knew how deep the maxium would be i could loop it but i dn't know that
any1 has a trick to do it ?
or hould i write 2 loops, 1 in e funtion, 1 in the script looping the one in the function that is calling on itself each time there is a child ?


if i get that done i'll but the code online

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 12 October 2007 - 01:11 PM

My suggestion would be to examine the many menu snippets in the Snippet Library to see if you can borrow some ideas from them... Some menus parse the entire document tree while others only parse into the current level of the active branch... It all depends on the desired functionality the the menu requires...

#3 Mukke

    Etomite Forum Newbie

  • Member
  • 47 posts

Posted 12 October 2007 - 01:51 PM

i kinda did at first but the ones that looked usefull created so much settings that i lost myself in the scripts

#4 Mukke

    Etomite Forum Newbie

  • Member
  • 47 posts

Posted 12 October 2007 - 03:48 PM

ok until i found out how to make it work i reduced it to parent and 1 sub
since the site i'm using it doesn't require more altho i would like to see it go deeper in the future since the javasript tingy can support ~n~ levels of children

#5 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 12 October 2007 - 04:44 PM

Without knowing what slide menu scripts you're working with we can't be of much help...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users