mmpagehighlighter.js
来自「小型简单的旅馆预订系统. 客户:预定,更改,撤销,会员积分累积,查询预定,会员」· JavaScript 代码 · 共 42 行
JS
42 行
/* Milonic DHTML Menu Item Activator Module mmpagehighlighter.js version 1.1 July 13 2005 This module is only compatible with the Milonic DHTML Menu version 5.16 or higher Copyright 2005 (c) Milonic Solutions Limited. All Rights Reserved. This is a commercial software product, please visit http://www.milonic.com/ for more information. Upload the file to your website, then: Add this line AFTER your menu_data.js file: <script src="/mmpagehighlighter.js" type=text/javascript></script> Used for highlighting a menu item by showmenu,text or item number based on pagematch properties Syntax is: mmItemActiveByShowMenu("dhtml menu") // highlights a menu item based on its Showmenu value mmItemActivateByText("image map sample") // highlights a menu item based on its Text value mmItemActivateByNumber(5) // highlights a menu item based on its Numberical Order The text properties are non case sensitive*/function _doHLK(_i){ _I=_mi[_i] $w(_I) itemOff(_i); }function _findItem(_txt,_opt){ for(_a=0;_a<_mi.length;_a++){ _I=_mi[_a] if($tU(_I[_opt])==$tU(_txt))_doHLK(_a) }}function mmItemActiveByShowMenu(_txt){_findItem(_txt,3)}function mmItemActivateByText(_txt){_findItem(_txt,1)}function mmItemActivateByNumber(_txt){_doHLK(_txt)}/*//Syntax Samples:mmItemActiveByShowMenu("dhtml menu")mmItemActivateByText("about us")mmItemActivateByNumber(5)*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?