📄 context.html
字号:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>DynarchMenu: context menus #1</title> <style type="text/css"> @import url("../src/skin-hmenu-dark.css"); body { background-color: #ccc; }</style> <script type="text/javascript"> // WARNING: the following should be a path relative to site, like "/hmenu/" // here it is set relative to the current page only, which is not recommended // for production usage; it's useful in this case though to make the demo work // correctly on local systems. _dynarch_menu_url = "../src/"; </script> <script type="text/javascript" src="../src/hmenu.js"></script> <style> #par1, #par2, #par3 { border: 1px solid #000; padding: 5px; } </style> </head> <body onload="DynarchMenu.setup('menu', { context: true });" id="document"> <p style="color: red; text-align: center"> <b>Note</b>: Context menu functionality is only available in Mozilla (+ related browsers, i.e. Netscape 7+, Galeon, Chimera, etc.) and Internet Explorer. Other browsers don't cooperate on this. </p> <h2>Look, context menus with <em>one</em> function call! :-)</h2> <p id="par1"> This paragraph has a context menu associated with it. Right-click somewhere inside it. </p> <p id="par2"> This is another paragraph that has a different context menu. Right-click somewhere inside it. </p> <p id="par3"> This is yet another paragraph which shows that we can also put arbitrary HTML inside the context menus. </p> <h2>Now the explanations</h2> <p> All these context menus are created with only <em>one</em> function call. The menu is defined like usual, in an <UL> element, but we initialize it this way: </p> <pre>DynarchMenu.setup('menu', { context: true });</pre> <p> Note the 鈥渃ontext: true鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -