403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 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 Version : 8.3.25
Disable Function : 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
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/data/wwwroot/2025_12_18_01/skin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/data/wwwroot/2025_12_18_01/skin/js/public.js
//替换空格
String.prototype.trim = function(){  
	return this.replace(/[ ]/g,"");   
}  


$(function(){
	
	//导航菜单
	var ind = 4;
	var nav= jQuery(".nav1");
	var init = jQuery(".nav1 .m").eq(ind);
	//alert(init);
	var block = jQuery(".nav1 .block"); 
	//block.css({"left":init.position().left-3}); 
	nav.hover(function(){},function(){ block.animate({"left":init.position().left-3},100); }); 

	jQuery(".nav1").slide({ 
		type:"menu", 
		titCell:".m", 
		targetCell:".sub", 
		delayTime:300, 
		triggerTime:0, 
		returnDefault:true,
		defaultIndex:ind,
		startFun:function(i,c,s,tit){ 
			block.animate({"left":tit.eq(i).position().left-3},100);
		}
	});
	
	//banner
	jQuery(".full_banner").slide({
		 titCell:".hd ul", 
		 mainCell:".bd ul", 
		 effect:"fold",  
		 autoPlay:true, 
		 autoPage:true,
		 trigger:"click",
		 interTime:3500
	});	
	
		//控制多行显示字数的方法
		function wordlimit(cname,wordlength){               //参数分别为:类名,要显示的字符串长度
    	var cname=document.getElementsByClassName(cname);  //需要加省略符号的元素对象
   	    for(var i=0;i<cname.length;i++){           
        var nowhtml=cname[i].innerHTML;                //元素的内容
        var nowlength=cname[i].innerHTML.length;      //元素文本的长度
        if(nowlength>wordlength){
            cname[i].innerHTML=nowhtml.substr(0,wordlength)+'...';      //截取元素的文本的长度并加上省略号
        }
    }
}
		wordlimit("inx_news_con",120);  //调用方法
		wordlimit("rmzh_wz",40);  //调用方法
	
	/*首页新闻鼠标移上去时出现浅灰色背景*/
	$(".news .tab-bd li").hover(function() {
	  $(this).css('background-color', '#f7f7f7');
	}, function() {
	  $(this).css('background-color', '#fff');
	});
	
	/*底部维信二维码*/
	$(".foot1 .foot_in .others a.weixin").hover(function() {
	  $(this).parents(".shejiao").children("img").fadeIn(800);
	}, function() {
	  $(this).parents(".shejiao").children("img").fadeOut(800);
	});
	
	
	$(".rmzh_in ul li:nth-child(3n+2)").css({});
	$(".tzdj_in ul li:nth-child(3n+2)").css({});
	$(".nyconn ul.about_pic li:nth-child(2)").css({'margin-left':'17px','margin-right':'17px'});
	$(".nyconn ul.about_pic li:nth-child(3)").css({'margin-bottom':'20px'});

	

	$(".side ul li:nth-child(1)").hover(function(){
		$(this).find(".sidebox").stop(true).animate({"width":"250px"},200).css({"opacity":"1","filter":"Alpha(opacity=100)","background":"#0059a9"})	
	},function(){
		$(this).find(".sidebox").stop(true).animate({"width":"54px"},200).css({"opacity":"0.8","filter":"Alpha(opacity=80)","background":"#000"})	
	});
	
	$(".side ul li:nth-child(2)").hover(function(){
		$(this).find(".sidebox").stop(true).animate({"width":"250px"},200).css({"opacity":"1","filter":"Alpha(opacity=100)","background":"#0059a9"})	
	},function(){
		$(this).find(".sidebox").stop(true).animate({"width":"54px"},200).css({"opacity":"0.8","filter":"Alpha(opacity=80)","background":"#000"})	
	});
	
	$(".side ul li.weixin").hover(function(){
		$(this).find("div").css({'display':'block'});
	},function(){
		$(this).find("div").css({'display':'none'});
	});
	

//回到顶部
function goTop1(){
	$('html,body').animate({'scrollTop':0},600);
}

$('.gotop1').click(function(){
		goTop1();
	})
	

 $('.ny_top_in>ul>li>a').each(function () {
	if ($($(this))[0].href == String(window.location))
		$(this).parent('li').addClass('on').attr('href', 'javascript:void(0);');
});

 $(window).bind("scroll", function () {  
		var sTop = $(window).scrollTop();  
		var sTop = parseInt(sTop);  
		if (sTop >= 430) {  
			if (!$(".header_full1").is(":visible")) {  
				try {  
					$(".header_full1").show(); 
					 $(".header_full1").stop(true).animate({"top":0},500)
				} catch (e) {  
					$(".header_full1").show();  
				}                        
			}  
		}  
		else {  
			if ($(".header_full1").is(":visible")) {  
				try {
					 $(".header_full1").stop(true).animate({"top":'100px'},500)
					$(".header_full1").hide(); 
					
				} catch (e) {  
					$(".header_full1").hide();  
				}                         
			}  
		}   
	});  
	
	
	
	
	
})

	

Youez - 2016 - github.com/yon3zu
LinuXploit