jQuery(document).ready(function () { jQuery('header nav').meanmenu(); }); $(function(){ // 手机导航 $('.mean-bar').prepend(""); $('.mean-nav>ul>li,.mean-expand').click(function(){ if($(this).find('.mean-expand').hasClass('mean-clicked')){ $(this).find('.mean-expand').toggleClass('mean-clicked').html('+'); }else{ $(this).find('.mean-expand').toggleClass('mean-clicked').html('-'); } $(this).find('ul').toggle( function(){ }, function(){ } ); }) $('.content-box-iner p').each(function(i){ if($(this).find('img').length!=0){ $(this).css('line-height','0px'); } }); var hight= ($(window).height())-100; $(".ctus-cotent").css({'min-height':hight+'px'}); var nice = $("html").niceScroll({ cursorborderradius: 0, cursorwidth: "8px", cursorfixedheight: 150, cursorcolor: "#fff", zindex: 9999, cursorborder: 0, }); })
星客网络@霍英鹏
$(function(){ $('.xuqiu-xx').click(function(){ $('.wechat-card-wrapper').show(); $('.wechat-card-wrapper img').show(); }) $('.wechat-card-wrapper').click(function(){ $(this).hide(); $(this).find('img').hide(); }) $('.xqnav').click(function(){ $('.mean-nav ul').hide(); // $('.meanmenu-reveal').removeClass('meanclose'); $('.meanmenu-reveal').click(); // $('.meanmenu-reveal').html(''); }) })
$(function(){ var fenbian3 = screen.width; $('.fli1').hover(function(){ $(this).css({'background':"rgba(0,0,0,0.5) url(/Public/ThinkerInternet/img/float/fl1.png) center no-repeat","border-radius":"10px 0px 0px 0px"}); if(fenbian3>414){ $(this).find('.flc-zxkf').stop().animate({'width':'240','height':'262','opacity':'1'},200); }else{ $(this).find('.flc-zxkf').stop().animate({'width':'240','height':'142','opacity':'1'},200); } },function(){ $(this).css({'background':"url(/Public/ThinkerInternet/img/float/fl1.png) center no-repeat"}); $(this).find('.flc-zxkf').stop().animate({'width':'0','height':'0','opacity':'0'},200); }); $('.fli2').hover(function(){ $(this).css({'background':"rgba(0,0,0,0.5) url(/Public/ThinkerInternet/img/float/fl2.png) center no-repeat"}); if(fenbian3>414){ $(this).find('.flc-zxkf').stop().animate({'width':'240','height':'324','opacity':'1'},200); }else{ $(this).find('.flc-zxkf').stop().animate({'width':'240','height':'172','opacity':'1'},200); $(this).css({'background':"rgba(0,0,0,0.5) url(/Public/ThinkerInternet/img/float/fl2.png) center no-repeat","border-radius":"0px 0px 0px 10px"}); } },function(){ $(this).css({'background':"url(/Public/ThinkerInternet/img/float/fl2.png) center no-repeat"}); $(this).find('.flc-zxkf').stop().animate({'width':'0','height':'0','opacity':'0'},200); }); $('.fli3').hover(function(){ $(this).css({'background':"rgba(0,0,0,0.5) url(/Public/ThinkerInternet/img/float/fl3.png) center no-repeat"}); $(this).find('.flc-zxkf').stop().animate({'width':'240','height':'242','opacity':'1'},200); },function(){ $(this).css({'background':"url(/Public/ThinkerInternet/img/float/fl3.png) center no-repeat"}); $(this).find('.flc-zxkf').stop().animate({'width':'0','height':'0','opacity':'0'},200); }); $('.sqzxa').click(function(){ window.open('http://p.qiao.baidu.com/cps/chatIndex?reqParam=%7B%22from%22%3A0%2C%22sid%22%3A%22-100%22%2C%22tid%22%3A%22-1%22%2C%22ttype%22%3A1%2C%22siteId%22%3A%225493961%22%2C%22userId%22%3A%227768384%22%7D', '商桥', 'width=1000,height=500,top=200,left=500, scrollbars=yes'); }) $('.sqzxa1').click(function(){ window.open('http://p.qiao.baidu.com/cps/chatIndex?reqParam=%7B%22from%22%3A0%2C%22sid%22%3A%22-100%22%2C%22tid%22%3A%22-1%22%2C%22ttype%22%3A1%2C%22siteId%22%3A%225493961%22%2C%22userId%22%3A%227768384%22%7D', '商桥', 'width=1000,height=500,top=200,left=500, scrollbars=yes'); }) $('.switch').click(function(){ $(this).toggleClass('soff') if($(this).hasClass('soff')){ $('#fixed-dock').addClass('fclose') }else{ $('#fixed-dock').removeClass('fclose') } }) })
留言咨询
function show() { var oBox = document.getElementById('tanchu'); oBox.style.display = 'block'; } function Close() { var oBox = document.getElementById('tanchu'); oBox.style.display = 'none'; } $('.j_backtop').click(function () { $('body,html').animate( { scrollTop: '0px' }, 2000 ); }); function _checkFormss(obj){ var name = $( "#name" ).val(); if ( name.length == 0 ) { layer.msg( "请填写您的姓名" ); return false; } var phone = $( "#phone" ).val(); if ( phone.length == 0 ) { layer.msg( "请填写您的手机号码" ); return false; } if ( phone.length != 11 || phone[0] != '1' ) { layer.msg( "手机号码格式不正确" ); return false; } var formData = $( obj ).parents( 'form' ).serializeArray(); $.post("/index.php/Service/buildFormInfo.html",{formData},function(e){ if( e.code==0 ){ layer.msg(e.msg, {icon: 1}); $('#tanchu').hide(); }else{ if( e.info ){ layer.alert( e.info, {icon: 2} ); }else{ layer.alert( e.msg, {icon: 2} ); } } }); } $(window).scroll( function(){ // var sHeight = $(document).scrollTop(); // var hight= $(window).height()-400; // console.log(hight); // $() // var fenbian2 = screen.width; // if(fenbian2>414){ // if(sHeight>=hight){ // $('#fixed-dock').show() // }else{ // $('#fixed-dock').hide() // } // } })