Hi Iceberg - Thanks for this effort.
I just looked, and I would like to see the "onmouseover" removed - this is something that should not be in the layout, but generated by the applicaiton. The default behavior can be set in the css; have a look at the source to http://meyerweb.com/eric/css/edge/menus/demo.html for how that can be accomplished. You can also see how he's accomplished a relative submenu thru pure CSS there too (so the function perhaps doesn't need to exist to generate the menus). You can see example of showing (and positioning) images w.r.t. menus in http://meyerweb.com/eric/css/edge/popups/demo2.html I think that the menus / layout we want to achieve would push it all into css, so that it would be easily modified by the application at runtime, and involve minimum code to "setup". I don't know CSS any either, but just got a few books and have been reading nights, so I am starting to get some concrete ideas on this. Hope you find the code in these links helpful. Regards, Yarko On Sun, May 3, 2009 at 5:14 AM, Iceberg <[email protected]> wrote: > Hi folks, > > There are intermittent discussion about cascading menu from time to time. > http://groups.google.com/group/web2py/msg/9a04650f84649641 > and recently: > > http://groups.google.com/group/web2py/browse_frm/thread/cbe3556820e885bb > > In this mail I attach a cascade menu draft. It is just a prototype far from > being finished, because I am not good at css at all. I just try to define a > kind of higher level syntax and make it work. The syntax features include: > > * Each menu item can have a text label AND/OR an image icon. > * Submenus are appeared in a recursive way. > > > Volunteers are welcome to polish the work. > > > The only four major files I modified or introduced in this app are as > below. > > static/grcmenu.css # It actually comes from here ( > http://splike.com/projects/cssmenu.html) > > models/menu.py # In final version, this would be adjusted into > modules/menu.py > > views/layout.html # Only one line genMenu(...) is inserted > > controllers/default.py # The main sample > > static/*.gif # Optional > > Sincerely, > Iceberg, 2009-May-03, 18:00(PM), Sun > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

