You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
569 B

8 years ago
8 years ago
8 years ago
  1. # class2context
  2. javascript library, to add context menu functionallity to html page
  3. Demo: class2context_DEMO.html
  4. ![Alt text](https://raw.githubusercontent.com/idoctnef/class2context/master/demoScreen.png "downlad and open the demo to test it")
  5. ### Usage
  6. First, include the files
  7. ```html
  8. <link rel='StyleSheet' type='text/css' href='class2context.css'>
  9. <script src='class2context.js'></script>
  10. ```
  11. Then, for each class, call the function
  12. ```js
  13. class2context('className', "title for contextmenu", [["option 1", "function1()"], ["option 2","function2()"]]);
  14. ```