📄 qa.html
字号:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-type" content="text/html; charset: utf-8" /> <title>DHTML Menu frames sample</title> <link rel="stylesheet" type="text/css" href="../../src/skin-xp.css" /> <link rel="stylesheet" type="text/css" href="main.css" /> <script type="text/javascript" src="../../src/hmenu.js"></script> <script type="text/javascript">MENU_ITEM='qa'</script> <style type="text/css"> .q { font-weight: bold; font-style: italic; } </style> </head> <body> <div class="content"> <h1>Questions and answers</h1> <ol> <li> <p class="q"> How did you make it disable the item for the current page? </p> <p> Pretty easy. We defined an ID for all menu items, so that they can be accessed thereafter using "menu.items[ID]". Then, each page defines a global variable MENU_ITEM, which can be accessed from the toplevel frameset using "window.frames.popups_frame.MENU_ITEM". Then, after retrieving the item, we simply call item.disable(). Something like this: </p> <pre>menu.items["item-" + window.frames.popups_frame.MENU_ITEM].disable();</pre> <p> Check the sources to see the exact code. </p> </li> <li> <p class="q"> What browsers has this been tested on? </p> <p> We tested and found to work Mozilla/Firefox (any platform), Internet Explorer 6 for Windows, Opera 8 (any platform), Apple Safari (Macintosh) and Konqueror (Linux). </p> <p> Also tested with IE7 Beta, works flawless. </p> </li> <li> <p class="q"> Does the 鈥渓azy鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -