Posted By


Iban on 02/04/11

Tagged


Statistics


Viewed 569 times
Favorited by 1 user(s)

Pretty Pie Menu


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(function() {
  2.  
  3. $("#area").prettypiemenu({
  4. buttons: [
  5. "ui-icon-minus",
  6. "ui-icon-plus",
  7. "ui-icon-close"
  8. ],
  9. onSelection: function(item) {
  10. alert (item + ' was clicked!');
  11. }
  12. });
  13.  
  14. $( "#testbtn" ).button({ icons: {primary:"ui-icon-gear"}, text: false })
  15. .click(function(event) {
  16. event.preventDefault();
  17. $("#area").prettypiemenu("show", {top: event.pageY, left: event.pageX});
  18. return false;
  19. });
  20. });

URL: http://www.cs.tut.fi/~laine9/demo/ppmenu/piedemo.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.