// 加入收藏 兼容360和IE6 function shoucang(sTitle, sURL) { try { window.external.addFavorite(sURL, sTitle); } catch (e) { try { window.sidebar.addPanel(sTitle, sURL, ""); } catch (e) { alert("加入收藏失败,请使用Ctrl+D进行添加"); } } } $(function () { $('.box_skitter').skitter({ dots: true, hideTools: true, interval: 2000, numbers_align: 'bottom', theme: 'round' }); //banner模块 $('.ser_cont').slide({titCell: ".ser_tit li", mainCell:".ser_con", effect: "fade", delay:800,defaultPlay:"false"});//资质证书 $('.cert_con').slide({ mainCell: ".cert_list ul", effect: "leftLoop", autoPlay: true, vis: 2, prevCell: ".cert_prev", nextCell: ".cert_next" });//资质证书 $('.news_con').slide({ titCell:".news_nav span", mainCell: ".news_list", effect: "fold" });//新闻中心 $('.part_con').slide({ titCell:".dot .item", mainCell: ".part_list", effect: "fold" , autoPlay: true,delay:800}); //主营业务 $(".ser_cont").hover(function(){ $(".service .item_bg").css("display","block"); $(".service .item_word").css("display","block"); },function(){ $(".service .item_bg").css("display","none"); $(".service .item_word").css("display","none"); $(".service li").removeClass("on"); }); }) $(function(){ $("#fr_sbt").on("click",function(){ var isMobile=/^(?:13\d|15\d|18\d|17\d|14\d)\d{5}(\d{3}|\*{3})$/; nam=$("#fr_name").val(); tel=$("#fr_tel").val(); yzm=$("#fr_yzm").val(); if (nam==""||yzm==null){ alert("姓名不能为空!"); return false; } if (tel==""||yzm==null){ alert("手机不能为空!"); return false; } if (!isMobile.test(tel)){ alert("手机格式不正确!"); return false; } if(yzm=="" ||yzm==null){ alert("验证码不能为空!"); return false; } if(yzm.length!=4){ alert("字符长度必须是4位!"); return false; } }); });