PDA

View Full Version : [DHTML] Javascript pie menu



justas
10-29-2006, 02:07 PM
1) CODE TITLE:
Javascript pie menu

2) AUTHOR NAME/NOTES:
Justas Vinevicius

3) DESCRIPTION:
This script allows you to build a pie menu. It uses unordered lists (<ul>) to define a menu, which means that not only is it easy to configure, but it will 'gracefully degrade' in older browsers!

4) URL TO CODE:
http://www.webtoolkit.info/javascript/effects/pie-menu/index.html

ddadmin
10-30-2006, 01:42 AM
It's certainly quite unique, though I was confused for a while, expecting it to be a 'pie graph", not "pie menu" lol. So here I was wondering why the demo page (http://demo.webtoolkit.info/javascript/effects/pie-menu/index.html) consists of just two blank DIVs. I know, you need to right click to activate the "pie menu."

justas
10-30-2006, 07:53 AM
It's certainly quite unique, though I was confused for a while, expecting it to be a 'pie graph", not "pie menu" lol. So here I was wondering why the demo page (http://demo.webtoolkit.info/javascript/effects/pie-menu/index.html) consists of just two blank DIVs. I know, you need to right click to activate the "pie menu."

Because you can attach the context menu to any number of containers. For example in the demo page there are 2 different menus and with this code:


PieContextMenu.attach('container', 'menu1');
PieContextMenu.attach('pool', 'menu2');

you attach 2 menus to different containers..

justas
11-13-2006, 07:55 PM
Some updates:
- FF bug in some cases fixed
- IE png bug fixed
- perfomance updates

Any suggestions, requests how to make this menu better ? :)

QuakeMaster
12-11-2006, 07:38 PM
Nice piece of code..