HEX
Server: nginx/1.16.1
System: Linux iZ7xv2zauie3qihz0jlnrxZ 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: www (1000)
PHP: 7.2.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/shzthfdcpg.com/wp-content/themes/shzhaotao/js/comm.js
function ShowSubMenu(id) //显示下拉
 {
   var $Menu=$("#Menu");
   if($Menu.size()!=1){return;}
   var $MenuItem=$Menu.children("ul").children("li");
   var $CurrentMenuItem=$("#MenuItem"+id);
   if($MenuItem.size()<=1){return;}
   if(typeof(submenu_style)=="undefined")
    {
      submenu_style=1;  //1表示纵向下拉,2表示横向下拉,0则关闭
    }
   var classname="menu_current";
   switch(submenu_style)
    {
     case 2:
       $MenuItem.children("ul").hide();
       document.write('<link rel="stylesheet" type="text/css" href="../css/moban1/submenu.css"/>');
       $CurrentMenuItem.children("ul").show();
       $CurrentMenuItem.addClass(classname).siblings().removeClass(classname);
       $MenuItem.mouseenter(function(){$(this).addClass(classname).children("ul").show();$(this).siblings().removeClass(classname).children("ul").hide();});
     break;

     case 1:
        $MenuItem.children("ul").hide();
        $MenuItem.mouseenter(function(){$(this).addClass(classname).siblings().removeClass(classname);});
        $MenuItem.mouseleave(function(){$(this).removeClass(classname);});
        document.write('<link rel="stylesheet" type="text/css" href="../css/moban1/dropmenu.css"/>');
        $MenuItem.mouseenter(function(){$(this).children("ul").slideDown("fast");});
        $MenuItem.mouseleave(function(){$(this).children("ul").slideUp("fast");});
       if(typeof(Lanmu_Id)!="undefined")
        {
         $Menu.bind('mouseleave',function(){$CurrentMenuItem.addClass(classname)});
       }
      break;
   }
 }

function Initialization_Nav(rootulid,currentid,parentids) //初始化导航
  {
   //关闭所有二级子栏目,shut_subnav=1默认关闭所有二级子栏目
   if(typeof(shut_subnav)=="undefined"){shut_subnav=1;} 
   if(shut_subnav==1)
   {
     var rootul=document.getElementById(rootulid);
     if(rootul==null){return;}
     var child_ul=rootul.getElementsByTagName("ul");
     var child_span=rootul.getElementsByTagName("span");
     if(child_ul!=null)
     {
     for(i=0;i<child_ul.length;i++)
      {
       child_ul[i].style.display="none"
      }
     }
    if(child_span!=null)
    {
     for(i=0;i<child_span.length;i++)
      {
       if(child_span[i].className=="node")
        {
         child_span[i].className="node_close";
        }
      }
    }
   }
   //根据当前子栏目id展开子ul和增加对应样式
   if(currentid!="0")
   {
    var c_sublanmu=document.getElementById(currentid);
    if(c_sublanmu!=null)
    {
     var child_ul=c_sublanmu.getElementsByTagName("ul");
     var first_span=c_sublanmu.getElementsByTagName("span")[0];
     if(child_ul[0]!=null)
      {
       child_ul[0].style.display="";
       if(first_span.className=="node_close" && parentids!="0")
        {
         first_span.className="node"
        }
      }
      var first_a=c_sublanmu.getElementsByTagName("a")[0];
      first_a.className=first_a.className+" current";
    }
    if(parentids!="0" && parentids!=null)
    {
      var Aparentids=parentids.split(",");
      var parentid;
      for(i=0;i<Aparentids.length;i++)
      {
       if(Aparentids[i]!="")
        {
          parentid="sl"+Aparentids[i];
          document.getElementById(parentid).style.display="";
          var child_ul=document.getElementById(parentid).getElementsByTagName("ul");
          var child_span=document.getElementById(parentid).getElementsByTagName("span");
          var child_a=document.getElementById(parentid).getElementsByTagName("a");
          if(child_ul.length>0){child_ul[0].style.display="";}
          if(child_a.length>0){child_a[0].className=child_a[0].className+" current";}
          if(child_span.length>0)
            {
              if(child_span[0].className=="node_close" && i>1)
               {
                child_span[0].className="node";
               }
            }
         }
      }
    }
   }
   //鼠标移动时转移a.current效果
   var $navmenu=$(".nav_menu");
   if($navmenu.size()==0){return;}
   var $navmenu_a=$navmenu.children("ul").children("li").find("a");
   var $navmenu_a_current;
   if($navmenu_a.size()>0)
   {
    $navmenu_a_current=$navmenu.children("ul").children("li").find("a.current");
    $navmenu_a.bind('mouseenter',function(){
     $(this).parent().siblings().children("a").removeClass("current");
    });  
    $navmenu.bind('mouseleave',function(){
      $navmenu_a_current.addClass("current");
    });  
   }
 }

function subnav(id,isroot) //导航前小图标点击效果
 {
    var thisobj=$("#"+id);
    if(thisobj.size()==0){return;}
    var first_ul=thisobj.children("ul");
    var first_span=thisobj.children("span");
    thisobj.siblings().children("ul").slideUp();
    thisobj.siblings().children("http://www.580web.cn/p519/Skin/p519/js/span.node").attr("class","node_close");
    if(first_ul.size()>0)
     {
       if(first_ul.is(":hidden"))
        {
          first_ul.slideDown();
        }
      else
        {
          first_ul.slideUp();
        }
      if(isroot){return;}
      if(first_span.attr("class")=="node")
       {
         first_span.attr("class","node_close");
       }
      else
       {
         first_span.attr("class","node");
       }
     }
 }




function TJCookie(v,Referer)
 {
   SetCookie("tongji","1",24*60*60);
   SetCookie("referer",Referer,24*60*60);
 }

function FontZoom(Size,Id)
 {
   var Obj=document.getElementById(Id);
   Obj.style.fontSize=Size; 
   Obj.style.lineHeight="180%"; 
 }





function open_calendar(Id,showtime)
 {
  Id=document.getElementById(Id);
  if(showtime==1)
   {
    SelectDate(Id,'yyyy-MM-dd hh:mm:ss',80,0);
   }
 else
   {
    SelectDate(Id,'yyyy-MM-dd',80,0);
   }
 }






function Write_Info(V)
 {
  var Av=V.split('&');
  if(Av.length==4)
   {
    var sublanmu_content=document.getElementById("sublanmu_content");
    if(sublanmu_content!=null){sublanmu_content.style.display="";}
    var clicks=Av[0].split('=')[1];
    var comments=Av[1].split('=')[1];
    var downloads=Av[2].split('=')[1];
    var reserves=Av[3].split('=')[1];

    var objclicks=document.getElementById("clicks");
    var objcomments=document.getElementById("comments");
    var objdownloads=document.getElementById("downloads");
    var objreserves=document.getElementById("reserves");
    if(objclicks!=null){objclicks.innerHTML=parseInt(clicks)+1;}
    if(objcomments!=null){objcomments.innerHTML=comments;}
    if(objdownloads!=null){objdownloads.innerHTML=downloads;}
    if(objreserves!=null){objreserves.innerHTML=reserves;}
  }
 }

function Link_Open(link,Target) //友情链接
 {
   if(link!="")
    {
      window.open(link,Target);
    }
 }