📄 actions.html
字号:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>DynarchMenu: menu actions</title> <style type="text/css"> @import url("../src/skin-modern.css"); body { background-color: #ccc; }</style> <script type="text/javascript">//<![CDATA[ // CDATA delimiters are using to protect our JS code // this should make valid XHTML documents. // 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/"; // ---------------------------------------------------------------------- // custom functions that will be called by certain menu items (see below) function changeBG(bg) { if (typeof bg == "undefined") bg = "#fff"; document.body.style.backgroundColor = bg; } var ps_visible = true; function togglePVisibility() { var ps = document.getElementsByTagName("p"); ps_visible = !ps_visible; for (var i = 0; i < ps.length; ++i) { ps[i].style.visibility = ps_visible ? "visible" : "hidden"; } return true; } //]]></script> <script type="text/javascript" src="../src/hmenu.js"></script> </head> <body onload="DynarchMenu.setup('menu');"> <p> A menu item can ordinarily do one of these two things: </p> <ol> <li>Open a Web page — that is, go to a certain URL; this can be done in the same window, in a new window (by specifying the target="_blank" attribute to the link, <em>like in any HTML document</em>) or in a named window (again, by specifying a window name as the target attribute, just like in any HTML document).</li> <li>Execute JavaScript code. This is done by specifying a 鈥渉ref鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -