<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//menu

$(document).ready(function(){
//menu
$('.menu li').mouseover(function(){
	$(this).find('.nav').stop(true,true).slideDown();
	$(this).children("a").addClass("cur");
	});
$('.menu li').mouseleave(function(){
	$(this).find('.nav').stop(true,true).slideUp('fast');
	$(this).children("a").removeClass("cur");
	});

$('.news_list li:even').addClass('newslisteven');
	$(".viewcon").find("img").each(function(index, element) {
        if($(this).width() &gt; 950) {
			$(this).css({"height":"auto","width":"100%"});
		}
    });

	 $('.codepic').hover(function(){$('.code').fadeIn()},function(){$('.code').fadeOut()});
    $('.backup,.topbut').click(function(){
        $('body,html').animate({scrollTop:0},500)
    });
    $(".backup").hide();
    $(function () {
        $(window).scroll(function(){
            if ($(window).scrollTop()&gt;500){
                $(".backup").fadeIn(1000);
            }else{
                $(".backup").fadeOut(1000);
            }
        })
   })
  
$('#left').bind('click',leftbut);
$('#right').bind('click',rightbut);
$('#lefta').bind('click',leftbuta);
$('#righta').bind('click',rightbuta);

//banner
var p=1;
var banner=$('#ipro2');
var w=100;
var bannernum=$('#ipro2 li').length;
$('#ipro2').css('width',bannernum*100+'%');
$('#ipro2 li').css('width',(100/bannernum)+'%');
var pro=1;
var probanner=$('#ipro1');
var probannernum=$('#ipro1 li').length;
$('#ipro1').css('width',probannernum*100+'%');
$('#ipro1 li').css('width',(100/probannernum)+'%');

//index;
function leftbut(){
	if( !banner.is(":animated") ){
		if(p==1){
			$('.slider span:first').addClass('end');
		}else{
			$('.slider span:last').removeClass('end');
			banner.animate({ 'margin-left' : '+='+w+'%' }, "slow");
			p--;
		}
	}
}
function rightbut(){
	if( !banner.is(":animated") ){
		if(p == bannernum){
			$('.slider span:last').addClass('end');
		}else{
			$('.slider span:first').removeClass('end');
			banner.animate({ 'margin-left' : '-='+w+'%' }, "slow");
			p++;
		}
	}
}

function leftbuta(){
	if( !probanner.is(":animated") ){
		if(pro==1){
			$('.slidera span:first').addClass('end');
		}else{
			$('.slidera span:last').removeClass('end');
			probanner.animate({ 'margin-left' : '+='+w+'%' }, "slow");
			pro--;
		}
	}
}
function rightbuta(){
	if( !probanner.is(":animated") ){
		if(pro == probannernum){
			$('.slidera span:last').addClass('end');
		}else{
			$('.slidera span:first').removeClass('end');
			probanner.animate({ 'margin-left' : '-='+w+'%' }, "slow");
			pro++;
		}
	}
}

});
</pre></body></html>