0 ){ $('#banner_main').slide({ titCell:'.hd ul', mainCell:'#banner ul', autoPlay:true, autoPage:true, delayTime:500, effect:'left'}); $(window).resize(function() { CenterBanner(); }); $(document).ready(function(e) { CenterBanner(); }); }else{ $("#banner_main").hide(); } function CenterBanner(){ var imgWidth = parseInt( $(".bannerlist li img:first").width() ); if( imgWidth <= 0 ) return; var winWidth = parseInt( $(window).width() ); var offset = parseInt( (winWidth-imgWidth)/2 ); $(".bannerlist li img").css("margin-left", offset+'px' ); }
  • 友情链接:
  • 展望科技
  • 百特印刷
  • 联系人:王女士  手机:13803152052  电话:0315-2242941  网址:http://www.zwxgt.com  地址:河北省beplay市路北区硅谷大厦1415室