//文本框默认提示文字 function textfocus(el) { if (el.defaultvalue == el.value) { el.value = ''; el.style.color = '#2c3e50'; } } function textblur(el) { if (el.value == '') { el.value = el.defaultvalue; el.style.color = '#c3c3c3'; } } /*=============指向图片放大===============*/ $(function(){ $(".list_img").hover(function(){ $(this).stop(false,true).animate({width:"110%",height:"110%",top:"-5%",left:"-5%"},300); },function(){ $(this).stop(false,true).animate({top:"0%",left:"0%",width:"100%",height:"100%"},300); }); }); /*=============/指向图片放大===============*/ // 首页产品展开js $(function(){ // 选项卡 $(".opendown").hide(); $(".hm-product .top li .btn").click(function(){ var top_index = $(this).parents("li").index(); var down_index = $(this).parents(".top").siblings().children(); $(this).addclass("current").siblings().removeclass("current"); down_index.hide(); $(".opendown").show(); down_index.eq(top_index).stop(true,true).slidedown(600); }); // 关闭按钮 $(".opendown .close").click(function(){ $(".opendown").slideup(800); $(".hm-product .top li").removeclass("current"); }); // 百叶窗切换 $(function(){ $(".opendown dl dt .bt").click(function(){ var sh= $(this).parents(".tt").next(".show"); $(this).parent("dt").next("dd").slidetoggle(800).parent('dl').siblings('dl').children('dd').hide(); $(this).toggleclass("up").parents('dl').siblings('dl').children('dt').children('.bt').removeclass("up"); }); }) // 产品图标 $(".hm-product .top li").hover(function(){ $(this).find(".pic").addclass("animated rotatein"); },function(){ $(this).find(".pic").removeclass('animated rotatein'); }); }); // 内页 $(function(){ $(".activity-list li:nth-child(3n)").addclass("last"); // 新闻列表 $(".news-list li").hover(function(){ $(this).find(".day").css("color","#044ea3"); $(this).find(".moye").css("color","#044ea3"); $(this).find("a").css("color","#044ea3"); //$(this).find(".more").css("background","url(images/pic3.png) no-repeat center center"); },function(){ $(this).find(".day").css("color","#888"); $(this).find(".moye").css("color","#999"); $(this).find("a").css("color","#333"); $(this).find(".moye").removeclass('animated rotatein'); //$(this).find(".more").css("background","url(images/pic2.png) no-repeat center center"); }); });