A

This is a demo
Just need to include the files:
  • class2context.js
  • class2context.css

Get started!

Right click over me!
element inside element with diferent class

Use

when html is charged, call the function

Use

when html is charged, call the function:
class2context(
'className',
"title",
[["option1", "functionoption1()"], ["option 2","functionoption2()"]]
);

适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。

来源:站长素材