ja.cssmenu.js

来自「Joomla!是一套获得过多个奖项的内容管理系统(Content Managem」· JavaScript 代码 · 共 22 行

JS
22
字号
sfHover = function() {	var sfEls = document.getElementById("ja-mainnav").getElementsByTagName("li");	for (var i=0; i<sfEls.length; ++i) {		sfEls[i].onmouseover=function() {			clearTimeout(this.timer);			if(this.className.indexOf(" sfhover") == -1)				this.className+=" sfhover";		}		sfEls[i].onmouseout=function() {			this.timer = setTimeout(sfHoverOut.bind(this), 20);		}	}}function sfHoverOut() {	clearTimeout(this.timer);	this.className=this.className.replace(new RegExp(" sfhover\\b"), "");}if (window.attachEvent) window.attachEvent("onload", sfHover);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?