// javascript document function g(id) { return document.getelementbyid(g); } function writedate() { var enabled = 0; today = new date(); var day; var date; var centry ; if(today.getday()==0) day = "星期日" if(today.getday()==1) day = "星期一" if(today.getday()==2) day = "星期二" if(today.getday()==3) day = "星期三" if(today.getday()==4) day = "星期四" if(today.getday()==5) day = "星期五" if(today.getday()==6) day = "星期六" //document.fontcolor = "000000"; centry=""; if (today.getyear()<2000 ) centry = "19" ; date1 = centry + (today.getyear()) + "年" + (today.getmonth() + 1 ) + "月" + today.getdate() + "日 " ; date2 = "" + day ; document.write( date1+date2); } function openmax(filename) { var w,h,s; w = screen.availwidth-0; h = screen.availheight-1; s = "directories=no,left=-4,top=-4,location=no,status=1,menubar=0,fullscreen=0,resizable=1,scrollbars=auto,toolbar=no,width=" + w + ",height=" + h; window.open(filename,"",s); } //页面脚本 function secboard(n) { for(i=0;i li > ul").css("display","none"); $("#nav > li").css("position","relative"); $("#nav > li >ul").css("position","absolute"); $("#nav > li").mouseover(function(){ $(this).children("ul").show(); //alert($(this).parent()); $(this).children("a").children("img").attr("src","images/"+menu2[$(this).index()-1]); //$("#navimg").index($(this)).src="images/"+menu1[index($(this))]; }); $("#nav > li > ul").mouseover(function(){ $(this).show(); }); //$("#nav > li > ul li").hover(function(){$(this).css({"color":"#ffd200"});},function(){$(this).css({"color":"#fff"});}); $("#nav > li").mouseout(function(){ $(this).children("ul").hide(); $(this).children("a").children("img").attr("src","images/"+menu1[$(this).index()-1]); //$("#navimg").index($(this)).src="images/"+menu2[index($(this))]; }); }) function tablist(currnum,minnum,allnum,headstr,liststr,movercss,moutcss) { for(var i=1;i<=maxnum;i++) { $("#"+headstr+i).removeclass(movercss); $("#"+liststr+i).css("display","none"); } $("#"+headstr+currnum).addclass(movercss); $("#"+liststr+currnum).css("display","block"); } function tablist1(currnum) { if (currnum==1) { $("#hh1").html(""); $("#hh2").html("行业动态"); $("#ss1").css("display","block"); $("#ss2").css("display","none"); $("#hhmore").html("更多>>"); }else if(currnum==2){ $("#hh1").html("公司新闻"); $("#hh2").html(""); $("#ss1").css("display","none"); $("#ss2").css("display","block"); $("#hhmore").html("更多>>"); } }