13讲项目实战内页滚动图效果实现

#13讲项目实战内页滚动图效果实现
内页  html代码及JS代码部分
<!doctype html>
<html lang="zh-cn">
<head>
<meta charset="gb2312">
<meta name="author" content="李明杰">
<meta name="keywords" content="湖南海外旅游有限公司 湖南长沙最好旅行社 湖南海外旅行社 长沙旅行社排名">
<meta name="description" content="湖南海外旅行社是湖南首批五星级旅行社,连续三年评为全国百强旅行社,国家特许经营出境 游组团社,长沙从事旅游业务最早、综合实力最强的旅游公司,主营出境旅游、国内旅游、入 境旅游、会议展览。">
<title>湖南海外旅游</title>
 <link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body class="webBody">
<!--网站头部开始-->
<div id="Top">
 <!--头部信息开始-->
 <div class="head"><img src="images/cart.png" align='absmiddle'/>&nbsp;全省免费服务热线:
   <span>96556</span> <span>0731-84635555</span>旅行社同行热线:<span>0731-84402588</span> <a href="#">登陆</a> <a href="#">注册</a>
 </div>
 <!--头部信息结束-->
 <!--banner开始-->
 <div id="header">
  <div class="banner"><a href=""><img src="images/logo.png" /></a></div>
  <div class="logo">
   <a href="">首页</a>
   <a href="">出境游</a>
   <a href="">国内游</a>
   <a href="">特价游</a>
   <a href="">签 证</a>
  </div>
  <!--搜索开始-->
  <div class="search">
   <form>
    <input type="text" class='txt' value="输入目的地"/>
    <input type="submit" class='but' value=""/>
   </form>
  </div>
  <!--搜索结束-->
 </div>
 <!--banner结束-->
 <!--导航开始-->
 <div class="Nav">
  <div class="mainNav">
   <ul>
    <li><a href="#">出境跟团游</a>
     <div class="menu">
      <p><span>台湾港澳:</span> <a href="#">台湾</a> | <a href="#">香港</a> | <a href="#">澳门</a></p>
      <p><span>东南亚:</span> <a href="#">泰国</a> | <a href="#">新加坡</a> | <a href="#">马来西亚</a> | <a href="#">越南</a> | <a href="#">柬埔寨</a> | <a href="#">老挝</a> | <a href="#">印度</a> | <a href="#">尼泊尔</a></p>
      <p><span>台湾港澳:</span> <a href="#">台湾</a> | <a href="#">香港</a> | <a href="#">澳门</a></p>
      <p><span>东南亚:</span> <a href="#">泰国</a> | <a href="#">新加坡</a> | <a href="#">马来西亚</a> | <a href="#">越南</a> | <a href="#">柬埔寨</a> | <a href="#">老挝</a> | <a href="#">印度</a> | <a href="#">尼泊尔</a></p>
     </div>
    </li>
    <li><a href="#">出境自由行</a>
     <div class="menu"></div>
    </li>
    <li><a href="#">国内跟团游</a>
     <div class="menu"></div>
    </li>
    <li><a href="#">国内自由行</a>
     <div class="menu"></div>
    </li>
    <li><a href="#">湖南周边游</a>
     <div class="menu"></div>
    </li>
   </ul>
  </div>
  <div class="smallNav"><a href="#">泰国</a> <a href="#">台湾</a> <a href="#">普吉</a></div>
 </div>
 <!--导航结束-->
</div> 
<!--网站头部结束--> 
<!--内页主体内容开始-->
<!--面包屑导航开始-->
<div class="webLogo">您现在所在的位置:<a href="">首页</a> >> <a href="">出境跟团游</a></div>
<!--面包屑导航结束-->
<div id="WebCon">
 <!--内页二级菜单开始-->
 <div id="web_Menu">
  <dl>
   <dt><a href="javascript:void(0)">台湾港澳</a></dt>
   <dd><a href="">台湾</a> <a href="">香港</a> <a href="">澳门</a></dd>
  </dl>
  <dl>
   <dt><a href="javascript:void(0)">东南亚</a></dt>
   <dd><a href="">香港</a> <a href="">香港</a> <a href="">澳门</a></dd>
  </dl>
  <dl>
   <dt><a href="javascript:void(0)">台湾港澳</a></dt>
   <dd><a href="">美洲:</a> <a href="">香港</a> <a href="">澳门</a></dd>
  </dl>
  <dl>
   <dt><a href="javascript:void(0)">台湾港澳</a></dt>
   <dd><a href="">台湾</a> <a href="">香港</a> <a href="">澳门</a></dd>
  </dl>
  <dl>
   <dt><a href="javascript:void(0)">台湾港澳</a></dt>
   <dd><a href="">美洲:</a> <a href="">香港</a> <a href="">澳门</a></dd>
  </dl>
  <dl>
   <dt><a href="javascript:void(0)">台湾港澳</a></dt>
   <dd><a href="">台湾</a> <a href="">香港</a> <a href="">澳门</a></dd>
  </dl>
 </div>
 <!--内页二级菜单结束-->
 <!--内页第一个部分开始-->
 <img src="images/webbg3.jpg" class="webbg3"/>
 <div id="webPart1">
  <!--左边开始-->
  <div id="webPart1_l"></div>
  <!--左边结束-->
  <!--右边开始-->
  <div id="webPart2_r">
   <img src="images/dirl.jpg" class="dirl" />
   <img src="images/dirr.jpg" class="dirr" />
   <!--scroll begin-->
   <div id="webPart2_Scroll">
    <div class="webPart2_ScrollCon">
     <dl>
      <dt><a href="#"><img src="images/intro.jpg" width='150' height='150' /></a></dt>
      <dd><a href="#">马尔代夫泰姬珊瑚四晚1</a></dd>
      <dd>抢购价:<span>13760元</span></dd>
     </dl>
     <dl>
      <dt><a href="#"><img src="images/intro2.jpg" width='150' height='150' /></a></dt>
      <dd><a href="#">马尔代夫泰姬珊瑚四晚2</a></dd>
      <dd>抢购价:<span>13760元</span></dd>
     </dl>
     <dl>
      <dt><a href="#"><img src="images/intro.jpg" width='150' height='150' /></a></dt>
      <dd><a href="#">马尔代夫泰姬珊瑚四晚3</a></dd>
      <dd>抢购价:<span>13760元</span></dd>
     </dl>
     <dl>
      <dt><a href="#"><img src="images/intro2.jpg" width='150' height='150' /></a></dt>
      <dd><a href="#">马尔代夫泰姬珊瑚四晚4</a></dd>
      <dd>抢购价:<span>13760元</span></dd>
     </dl>
     <dl>
      <dt><a href="#"><img src="images/intro.jpg" width='150' height='150' /></a></dt>
      <dd><a href="#">马尔代夫泰姬珊瑚四晚5</a></dd>
      <dd>抢购价:<span>13760元</span></dd>
     </dl>
     <dl>
      <dt><a href="#"><img src="images/intro2.jpg" width='150' height='150' /></a></dt>
      <dd><a href="#">马尔代夫泰姬珊瑚四晚6</a></dd>
      <dd>抢购价:<span>13760元</span></dd>
     </dl>
     <dl>
      <dt><a href="#"><img src="images/intro.jpg" width='150' height='150' /></a></dt>
      <dd><a href="#">马尔代夫泰姬珊瑚四晚7</a></dd>
      <dd>抢购价:<span>13760元</span></dd>
     </dl>
    </div>
   </div>
   <!--scroll end-->
  </div>
  <!--右边结束-->
 <div style="clear:both;"></div></div>
 <!--内页第一个部分结束-->

</div>
<!--内页主体内容结束-->
 var tips;//对像变量
var theTop = 30; //头部距离值
var old = theTop;//
   function initFloatTips() {
      tips = document.getElementById('Kf');//获取到滚动的框
      moveTips();
   };
   
   function moveTips() {
      var tt=50;
      if (window.innerHeight) {//NS浏览器专用的
         pos = window.pageYOffset//滚动的高度
      }else if (document.documentElement && document.documentElement.scrollTop){
        pos = document.documentElement.scrollTop
    }else if (document.body) {
        pos = document.body.scrollTop;
    }

     pos=pos-tips.offsetTop+theTop;//设置于看得见得浏览器距理
     pos=tips.offsetTop+pos/10;
     if (pos < theTop) pos = theTop;
     if (pos != old) {
        tips.style.top = pos+"px";
        tt=10;
    }
   old = pos;
   setTimeout(moveTips,tt);
       }
          initFloatTips();
 
 var d_Value=$(".search input.txt").val();//获取到他的默认的值
 //获取焦点时
 $(".search input.txt").focus(function(){
 //$(this)同等于我们的 $(".search input.txt")
  if($(this).val()==d_Value){
   $(this).val("");//当前输入框的值设置为空
   //$(this).css("border","1px solid red");
  }
 });
 //失去焦点
 $(".search input.txt").blur(function(){
  if($(this).val()==""){
   $(this).val(d_Value);//给他赋他的初始值
  }
 });
 //二级菜单的实现
 $(".Nav .mainNav ul li").hover(function(){
  $(this).find(".menu").show();//显示 .menu 盒子
  $(this).addClass("hover");//给li添加 class="hover"
 },function(){
  $(this).find(".menu").hide();//隐藏
  $(this).removeClass("hover");//移除 li class="hover"
 });
 //=======广告轮播图的实现=======
 var _index=0;//初始化序列  
 var timePlay=null;
 $("#Adv .ImgList").eq(0).show().siblings("div").hide();//最开始显示第一张
 $("ul.button li").hover(function(){/*鼠标在上面*/ 
  clearInterval(timePlay);//清处定时播放器
  _index=$(this).index();//获取当前li序列号
  //alert(_index);//弹窗
  $(this).addClass("hover").siblings().removeClass("hover");//显示按扭
  //fadeIn  淡入  fadeOut 淡出  
  $("#Adv .ImgList").eq(_index).fadeIn().siblings("div").fadeOut();//显示图片
 },function(){/*鼠标移开*/
  autoPlay();//启用定时播放器
 });
 //自动轮播
 //构建自动轮播的函数
 function autoPlay(){
  //alert("sss");
  //设置定时器
  timePlay=setInterval(function(){
   _index++;
   if(_index<4){
    if(_index==3){_index=-1; }//变成-1 
    $("ul.button li").eq(_index).addClass("hover").siblings().removeClass("hover");//显示按扭
    $("#Adv .ImgList").eq(_index).fadeIn().siblings("div").fadeOut();//显示图片
     
   }else{_index=-1;/*设置序列号为-1,跳到播放第一张图片*/}
  },2000); 
 };
 autoPlay();//调用和执行
 

 //路线推荐 图片文字滑动效果
 $("ul.sel_imgList li").hover(function(){
   $(this).find("p").stop().animate({height:"41px"},200)
 },function(){
   $(this).find("p").stop().animate({height:"0px"},200)
   });

//第一部分内容区广告轮播效果
var _index2=0;//定义了序列号变量
var timeInterval=null;
$("ul.Part_ScrollBut li").hover(function(){
  clearInterval(timeInterval);//清除定时器
  _index2=$(this).index();//获取当前的序列号
  $(this).addClass("hover").siblings().removeClass("hover");//当前li添加 class="hover" 其它li移除
  $(".Part_ScrollCon").animate({left:"-"+_index2*339+"px"},1000);
  $("ul.Part_ScrollTxt li").eq(_index2).show().siblings().hide();//序列相同的li显示,其它的隐藏
},function(){autoPlay2();
  
});
//自动轮播
function autoPlay2(){
  timeInterval=setInterval(function(){ 
   _index2++;//序列号加1
   
   if(_index2==5){_index2=0;}
   if(_index2<=4){    
    $("ul.Part_ScrollBut li").eq(_index2).addClass("hover").siblings().removeClass("hover");//当前li添加 class="hover" 其它li移除
    $(".Part_ScrollCon").animate({left:"-"+_index2*339+"px"},1000);
    $("ul.Part_ScrollTxt li").eq(_index2).show().siblings().hide();
     if(_index2==4){_index2=-1;}
   }else{_index2=-1;}//这个地方要不要
  },3000);
};
autoPlay2();

//第三部分 Part3选项卡样式   
function partComm(selBut,imgCon,Con){
  //alert(selBut+"---"+imgCon +Con);
  var _index3=0;
  $(selBut).mouseover(function(){
  _index3=$(this).index();
  $(this).addClass("hover").siblings().removeClass("hover");
  $(imgCon).eq(_index3).show().siblings().hide();
  $(Con).eq(_index3).show().siblings().hide();
});
};
//把通用的代码,封装在函数,通传参的方式,来调用
partComm("#Part3 p.title a.sel_a","#Part3 .part3Con .Part3ConL img","#Part3 .Part3ConR .Part3ConR_comm");
partComm("#Part4 p.title a.sel_a","#Part4 .part3Con .Part3ConL img","#Part4 .Part3ConR .Part3ConR_comm");

function partComm2(selBut,Con){
  //alert(selBut+"---"+imgCon +Con);
  var _index3=0;
  $(selBut).mouseover(function(){
  _index3=$(this).index();
  $(this).addClass("hover").siblings().removeClass("hover");
  $(Con).eq(_index3).show().siblings().hide();
});
};
partComm2("#part5 ul.part5_selbut li","#part5 .part5_Con .part5_content");
//路线推荐先项卡效果
//鼠标滑上去的效果 mouseover
partComm2("ul.select_but li",".select_con .select_content");
$(".part5_content .part5Comm").hover(function(){
 //$(this).find("p").stop().slideUp();//从下往上收缩
  $(this).find("p").stop(true,true).slideDown();//从上向下慢慢展开
},function(){
  $(this).find("p").stop(true,true).slideUp();//从下往上收缩
  //$(this).find("p").stop().slideDown();//从上向下慢慢展开
});

//微信二维码显示
$("#fixedBox_Con ul li.li4 a.wxrelative").hover(function(){
  $(this).find("img.erm").show();
},function(){
  $(this).find("img.erm").hide();
});

//横浮广告显示
$(window).scroll(function(){
 var Top=$(window).scrollTop();//滚动的高度
 if(Top>1000){
  $("#fixedBox").addClass("scrollDisplay"); //当他滚动高度大于1000 就加上样式 class="scrollDisplay"
 }else{
   $("#fixedBox").removeClass("scrollDisplay");
 }
});

//在线客服关闭功能
$("#Kf img.but_close").click(function(){
 $("#Kf").hide();//隐藏 
});

//内页图片左右切换效果
 //左按扭切换效果
 var click_num=0;//点击次数
 var setTime3=null;//向左定时器
 var setTime4=null;//向右定时器
 var len=$("#webPart2_Scroll .webPart2_ScrollCon dl").length;//获取有多少个 dl(图片列表)
$("#webPart2_r img.dirl").click(function(){
  clearInterval(setTime3);//清除定时器
  click_num++;// 点击次数加1
  //alert(click_num);
  if(click_num<len-2){

  $("#webPart2_Scroll .webPart2_ScrollCon").animate({left:-168*click_num+"px"},1000);
  }else{alert("到头了"); click_num=len-3;}
});
 //右切换按扭效果
 $("#webPart2_r img.dirr").click(function(){
   clearInterval(setTime3);//清除定时器
   click_num--;//点击次数减1 
   //alert(click_num);
  if(click_num>=0){
   $("#webPart2_Scroll .webPart2_ScrollCon").animate({left:-168*click_num+"px"},1000);
  }else{alert("右边到头了!!"); click_num=0;}
 });
 //自动轮播
function autoPlay3(){
  setTime3=setInterval(function(){
   //alert("ss");
   click_num++;// 点击次数加1
   if(click_num<len-2){
    $("#webPart2_Scroll .webPart2_ScrollCon").animate({left:-168*click_num+"px"},1000);
   }else{click_num=len-3; autoPlay4();clearInterval(setTime3);//清除定时器 
    }
  },1000);
   
   //alert("自动轮播");
   }
autoPlay3();//调用函数

function autoPlay4(){
  setTime4=setInterval(function(){
   click_num--;//点击次数减1 
  if(click_num>=0){
   $("#webPart2_Scroll .webPart2_ScrollCon").animate({left:-168*click_num+"px"},1000);
  }else{ click_num=0;autoPlay3();clearInterval(setTime4);//清除定时器
   }
  },1000);
  
}
 

 
 
 
 

<!--网站底部开始-->
<div id="Footer">
 <div class="Footer_con">
 <!--左banner start-->
  <div class="Footer_conL">
   <img src="images/fbanner.png" />
   <div class="bshare-custom icon-medium" style="padding-top:15px;"><a title="分享到QQ空间" class="bshare-qzone"></a><a title="分享到新浪微博" class="bshare-sinaminiblog"></a><a title="分享到人人网" class="bshare-renren"></a><a title="分享到腾讯微博" class="bshare-qqmb"></a><a title="分享到网易微博" class="bshare-neteasemb"></a><a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a><span class="BSHARE_COUNT bshare-share-count">0</span></div><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>
  </div>
 <!--左banner end-->
  <div class="Footer_conR">
   <dl>
    <dt><a href="">服务承诺</a></dt>
    <dd><a href="">我们的服务</a></dd>
    <dd><a href="">我们的承诺</a></dd>
    <dd><a href="">荣誉</a></dd>
   </dl>
   <dl>
    <dt><a href="">技术实力</a></dt>
    <dd><a href="">专家推荐</a></dd>
    <dd><a href="">热门推荐</a></dd>
    <dd><a href="">网友推荐</a></dd>
   </dl>
   <dl>
    <dt><a href="">服务承诺</a></dt>
    <dd><a href="">我们的服务</a></dd>
    <dd><a href="">我们的承诺</a></dd>
    <dd><a href="">荣誉</a></dd>
   </dl>
   <dl>
    <dt><a href="">关于我们</a></dt>
    <dd><a href="">公司介绍</a></dd>
    <dd><a href="">新闻动态</a></dd>
    <dd><a href="">招贤纳士</a></dd>
    <dd><a href="">联系我们</a></dd>
   </dl>
  </div>
 </div>
</div>
<!--网站底部结束-->
<!--网站版权信息start-->
<div id="Copy">
 湖南海外旅游有限公司 版权所有Copyright@2011-2013.www.hnhwly.com<br/>
 湘ICP备14003721号-2 旅行社业务经营许可证号:L-HUN-CJ00008 法定代表人:陈力 湖南省旅游局投诉电话:0731-84717614<br/>
 <span>友情链接:</span> <a href="">湖南省旅游</a>  <a href="">旅行社业务</a>  <a href="">海外旅游有</a>
</div>
<!--网站版权信息end-->
<!--底部广告start-->
<div id="fixedBox"><div id="fixedBox_Con">
 <ul>
  <li class="li1">全省免费服务热线: <span>96556</span></li>
  <li class="li2">旅游咨询 <a href="http://wpa.qq.com/msgrd?v=3&uin=783733618&site=qq&menu=yes" target="_blank">点击QQ咨询</a></li>
  <li class="li3"><img src="images/fixedHot.png" /> <a href="" target="_blank">当前最新活动</a></li>
  <li class="li4">
   <a href="#" class='wxrelative'>
      <img src="images/fixedWx.png" class="wx"/>
      <img src="images/erweima.png"  class="erm"/>
   </a>
   <a href="#"><img src="images/fixedWb.png" /></a>
   <a href="http://wpa.qq.com/msgrd?v=3&uin=783733618&site=qq&menu=yes" target="_blank"><img src="images/fixedQQ.png" /></a>
   <a href="#Top"><img src="images/fixedDir.png" /></a>
   
  </li>
 </ul>
</div></div>
<!--底部广告end-->

<!--在线客服QQ start-->
<div id="Kf">
 <ul>
  <li><a href="#">境外线路</a></li>
  <li><a href="#">海岛线路</a></li>
  <li><a href="#">国内线路</a></li>
  <li><a href="#">省内线路</a></li>
 </ul>
 <p><a href="#"><img src="images/kfQQ.png" /></a></p>
 <div class="kfWx"><img src="images/erweima.png" /></div>
</div>
<script type="text/javascript" src="js/flqq.js"></script>
<!--在线客服QQ end-->
<!--
 1、构建一个长方形盒子,利用绝对定位,把他移动到最右边
 2、给这个长方形,添加背景图
 3、利用ul 无序列表来制作四个客服, 分别控制每个li高度,水平竖直距中显示
 
-->
<!--引用外部jquery类库-->
<script type="text/javascript" src="js/jquery.js"></script>
<!--最后面引用-->
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>

CSS样式代码

*{margin:0px; padding:0px;list-style-type:none;font-family:"微软雅黑";}
#Top{/*width:100%;*/ height:149px; background:url("../images/headbg.jpg");}
#Top .head{width:1000px; height:30px;line-height:30px;  margin:0px auto;/*水平距中*/font-size:13px;font-family:"微软雅黑"; color:#666;}
#Top .head span{color:#E20076; font-weight:bold;/*加粗*/padding:0px 4px;}
#Top .head a{color:#666;text-decoration:none;/*去掉下划线*/ font-weight:800;/*加粗*/
    padding:0px 5px;}
#Top .head a:hover{color:#E20076;}/*鼠标放上去改变文字颜色*/
#header{width:1000px;height:70px;  margin:0px auto;}
#header .banner{width:221px; height:44px; float:left;/*左浮动*/ padding-top:14px;}
#header .logo{width:511px; height:70px;float:left;/*左浮动*/line-height:70px;font-size:16px;font-family:"微软雅黑"; padding-left:80px;}
#header .search{width:180px; height:35px;float:right;/*左浮动*/ padding-top:16px; position:relative;/*相对定位*/}
#header .logo a{color:#000; font-weight:bold; text-decoration:none;
     padding:0px 20px; float:left;}
#header .logo a:hover{color:#E20076;}
#header .search input.txt{width:140px; height:23px; border:1px solid #e1e1e1; font-size:12px; 
       color:#999; text-indent:10px;/*首行缩进*/ position:absolute; 
       left:0px; top:20px;}
#header .search input.but{width:26px; height:25px; background:url("../images/sosoh.jpg");
      border:0px;/*边框设置为0*/ position:absolute; left:141px; top:20px;}
/*导航样式*/
#Top .Nav{width:1000px; height:49px;margin:0px auto; }
#Top .Nav .mainNav{width:550px; height:49px;  float:left;}
#Top .Nav .smallNav{width:150px; height:49px;float:right;}
#Top .Nav .mainNav ul li{ width:100px; height:49px; float:left; line-height:49px; 
       text-align:center;/*文字水平距中*/
       font-size:14px; position:relative;/*相对定位*/}
#Top .Nav .mainNav ul li a{ color:#fff; text-decoration:none;}
#Top .Nav .mainNav ul li .menu{width:350px; border:2px solid  #e10076;border-top:0px; position:absolute; 
       background:#fff;z-index:3;/*改变定位元素的上下关系(那个在上,那个在正下,值越大,越在上面)*/
        filter:Alpha(opacity=90);-moz-opacity: 0.9; opacity: 0.9;/*背景透明*/ left:0px; top:49px;
        display:none;/*隐藏*/ padding:10px;/*内边距*/}
#Top .Nav .mainNav ul li.hover{background:#B80064;}
#Top .Nav .mainNav ul li p{text-align:left;/*距左*/line-height:35px; border-bottom:1px dotted #ddd;}
#Top .Nav .mainNav ul li p span{font-weight:bold;}
#Top .Nav .mainNav ul li p a{color:#666;}
#Top .Nav .mainNav ul li p a:hover{color:#B80064;}
#Top .Nav .smallNav{line-height:49px; font-size:14px;  }
#Top .Nav .smallNav a{color:#fff; text-decoration:none; float:left; padding:0px 10px;}
#Top .Nav .smallNav a:hover{text-decoration:underline;/*加下划线*/}
/*广告样式*/
#Adv{width:100%;height:421px; background:red; position:relative;}
#Adv .ImgList{width:100%; height:421px; position:absolute;/*绝对定位*/ left:0px; top:0px;
z-index:2;}
#Adv ul.button li{width:50px; height:10px; background:#000; border:1px dotted #fff; float:left;
     margin:0px 5px; list-style-type:none; }
#Adv ul.button{ height:20px; position:absolute;left:43%; bottom:50px;z-index:3; display:inline-block;/*行内块级元素*/}
#Adv ul.button li.hover{background:#fff;}
/*第一部分样式*/
#Part1{width:1000px; height:460px; margin:35px auto; }
#Part1 #Part1_L{width:339px; height:440px; border:1px dashed #E20076; float:left; padding:6px;}
#Part1 #Part1_R{width:560px; height:442px; padding:0px 30px; background:url("../images/vl.jpg") no-repeat,url("../images/vr.jpg") no-repeat right top; float:right;}
#Part1 #Part1_R p.biaoti{height:90px; background:url("../images/lxtjbg.jpg") no-repeat right bottom; 
       border-bottom:1px dashed #c9c9c9;}
#Part1 #Part1_R ul.select_but{border-bottom:1px solid #eee; height:32px;}
#Part1 #Part1_R ul.select_but li{ height:32px; width:84px;  float:left; cursor:pointer;
         font-size:14px; text-align:center; line-height:32px;
         background:url("../images/lxtjcdbg.jpg") no-repeat right bottom;}
#Part1 #Part1_R ul.select_but li.hover{background-image:url("../images/lxtjcdxg.jpg");}
/*第一部分 ----内容样式*/
#Part1 #Part1_R .select_con{height:300px; margin-top:20px; overflow:hidden;}
#Part1 #Part1_R .select_con .select_content{height:300px; }
/*选项卡的图片列表效果*/
#Part1_R .select_con .select_content ul.sel_imgList li{width:126px; height:124px; float:left;
      margin:0px 6px 0px 7px; position:relative;/*相对定位*/}
#Part1_R .select_con .select_content ul.sel_imgList li p{/*height:41px;*/ background-color:rgba(187,14,115,0.7);
    color:#fff; font-size:12px; padding:0px 5px; line-height:20px;
    position:absolute; left:0px; bottom:0px; height:0px; overflow:hidden;}
/*路线推荐的新闻列表*/
ul.IntroNews{ padding-top:20px;}
ul.IntroNews li{font-size:14px; line-height:35px; 
    text-align:left;
    text-indent:20px; background:url("../images/li_dian.png") no-repeat 6px 15px;}
ul.IntroNews li a{ color:#000; text-decoration:none;}
ul.IntroNews li a:hover{color:#E20076;}
ul.IntroNews li span{color:#E20076; font-weight:bold; float:right;}

/*内容区广告轮播效果*/
#Part1_L .Part_imgCon{width:339px; height:376px; background:red; position:relative; overflow:hidden;}
#Part1_L .Part_imgCon .Part_ScrollCon{height:376px; width:1000%; background:blue;
       position:absolute; left:0px; top:0px;}
#Part1_L .Part_imgCon .Part_ScrollCon img{float:left;}
/*滚动文字样式*/
#Part1_L ul.Part_ScrollTxt{height:35px; overflow:hidden; }
#Part1_L ul.Part_ScrollTxt li{ font-size:14px; line-height:35px;}
#Part1_L ul.Part_ScrollBut li{width:40px; height:8px;list-style-type:none;
     float:left; margin:0px 5px; background:#00a9e2; cursor:pointer;}
#Part1_L ul.Part_ScrollBut li.hover{background:#d81480;}

/*第二部分样式*/
#Part2{width:1000px; height:360px; background:url("../images/vl.jpg") no-repeat,url("../images/vr.jpg") no-repeat right top; 
margin:0px auto; text-align:center;}
#Part2 img.bannerimg{margin-top:15px;}
/*第三部分样式*/
.Part3Comm{width:1000px; height:500px; background:url("../images/vl.jpg") no-repeat,url("../images/vr.jpg") no-repeat right top; 
   margin:0px auto; margin-top:35px; text-align:center;}
.Part3Comm p.title{height:30px; width:900px;margin:0px auto; 
   background:url("../images/cjxlejcdbg.jpg"); text-align:left; font-size:14px;font-family:"微软雅黑";
   font-weight:bold; text-indent:55px; padding:12px 29px 0px 55px;}
.Part3Comm p.title a{ color:#000; text-decoration:none; width:70px; height:20px; position:relative;
   text-indent:0px; line-height:20px;display:inline-block; float:left; text-align:center;}
.Part3Comm p.title a img{position:absolute; top:24px; left:30px; display:none;}
.Part3Comm p.title a.hover{background:#e10076; border-radius:15px; color:#fff;}
.Part3Comm p.title a.hover img{display:block;}
.Part3Comm p.title a.more{font-weight:100; float:right;}
.Part3Comm p.title a.more:hover{background:none; color:#e10076;}
.Part3Comm .part3Con{height:350px;  width:940px; margin:20px auto 0px;}
 .Part3ConL{width:319px; height:326px; background:url("../images/xxpicbg.jpg"); float:left;
       padding:6px 0px 0px 7px; text-align:left;}
 .Part3ConR{width:580px; height:334px; float:right;}
.Part3Comm .part3Con .Part3ConL img{display:none;}
.Part3Comm  .Part3ConR .Part3ConR_comm{width:580px; height:334px;  display:none;}
 .Part3ConR .Part3ConR_comm .Part3ConR_intro{height:75px; border:1px solid #eee; padding:15px 15px 10px 15px;}
 .Part3ConR .Part3ConR_comm .Part3ConR_intro h3{text-align:left; font-size:16px; color:#000;font-family:"微软雅黑"; }
.Part3ConR .Part3ConR_comm .Part3ConR_intro h3 a{color:#000; text-decoration:none;}
.Part3ConR .Part3ConR_comm .Part3ConR_intro h3 a:hover{color:#d81480;}
.Part3ConR .Part3ConR_comm .Part3ConR_intro p{font-size:14px;color:#666;  text-align:left;
       line-height:22px; padding-top:10px;}
/*第五部分样式*/
#part5{width:1000px; height:490px; margin:0px auto; background:url("../images/vl.jpg") no-repeat,url("../images/vr.jpg") no-repeat right top; }
#part5 ul{border:1px solid #ddd; height:39px; background:url("../images/part5_ulbg.jpg");
    width:970px; margin:10px auto;}
#part5 ul.part5_selbut li{width:170px; height:39px; border-right:1px solid #ddd; float:left;
     font-size:14px; color:#000; text-align:center; line-height:39px; font-weight:bold;}
#part5 ul.part5_selbut li.hover{background:#e20076; color:#fff;}
#part5 .part5_Con{width:940px; height:383px;  margin:0px auto; overflow:hidden; }
#part5 .part5_Con .part5_content{width:940px; height:383px; }
.part5_content .part5_box1{width:329px; height:383px;float:left; margin-right:5px;}
.part5_content .part5_box2{width:382px; height:383px; float:left;margin-right:5px;}
.part5_content .part5_box3{width:217px; height:383px;float:left;}
.part5_content .part5_box1 .top{width:329px; height:245px;margin-bottom:5px; }
.part5_content .part5_box1 .bottom{width:329px; height:138px;}
.part5_box1 .bottom .bottom_l{width:162px; height:138px; float:left; margin-right:5px;}
.part5_box1 .bottom .bottom_r{width:162px; height:138px;float:left;}
.part5_box2 .part5_box2_b1{width:189px; height:122px; float:left; margin-right:5px;}
.part5_box2 .part5_box2_b2{width:187px; height:122px; float:left;}
.part5_box2 .part5_box2_b3{width:382px; height:122px; float:left; margin-top:5px;}
.part5_box2 .part5_box2_b4{width:188px; height:135px; float:left; margin-top:5px;}
.part5_box3 .part5_box3_b1{width:217px;height:239px; margin-bottom:5px; }
.part5_box3 .part5_box3_b2{width:217px;height:144px;}
.part5Comm{position:relative;}
.part5Comm p{width:100%; height:100%;background:rgba(0,0,0,0.5); position:absolute;/*绝对*/
     left:0px; top:0px; font-size:34px; color:#fff; text-align:center; 
     line-height:245px; display:none;/*隐藏*/}
.part5_content .part5_box1 .bottom_l p{line-height:138px; }
.part5_content .part5_box1 .bottom_r p{line-height:138px; }
.part5_content .part5_box2 .part5_box2_b1 p{line-height:122px; }
.part5_content .part5_box2 .part5_box2_b2 p{line-height:122px; }
.part5_content .part5_box2 .part5_box2_b3 p{line-height:122px; }
.part5_content .part5_box2 .part5_box2_b4 p{line-height:138px; }
.part5_box3 .part5_box3_b2 p{line-height:144px;}

/*签证服务样式*/
.part5_Con .part5_content dl{width:220px; height:82px; float:left; margin:15px 45px;}
.part5_Con .part5_content dl dt{float:left;}
.part5_Con .part5_content dl dt img{border:1px solid #ddd;}
.part5_Con .part5_content dl dt a:hover img{border:1px solid #e20076;}
.part5_Con .part5_content dl dd{padding-left:5px; width:75px; float:right; color:#e20076; font-weight:bold;
      line-height:25px;font-size:13px;}
.part5_Con .part5_content dl dd.ti{color:#000; font-weight:100;  }
.part5_Con .part5_content dl dd a{ color:#e20076; text-decoration:none;}
#part5 ul.IntroNews{background:none;border:0px; width:550px; }
#part5 ul.IntroNews  li {}
#part5 ul.IntroNews  li span{ float:right; color:#666;  font-weight:100; }
/*网站底部样式*/
#Footer{width:100%; height:141px; background:#000;}
#Footer .Footer_con{width:1000px; height:141px;  margin:0px auto;}
#Footer .Footer_con .Footer_conL{width:260px; height:126px;  float:left; padding-top:15px;}
#Footer .Footer_con .Footer_conR{width:600px; height:141px; float:right;}
#Footer .Footer_con .Footer_conR dl{color:#fff; width:141px; text-align:right;float:left;}
#Footer .Footer_con .Footer_conR dl dt{padding-top:15px;font-size:14px; font-weight:bold;  line-height:35px;}
#Footer .Footer_con .Footer_conR dl dd{font-size:12px; line-height:23px;}
#Footer .Footer_con .Footer_conR dl a{color:#fff; text-decoration:none;}
#Footer .Footer_con .Footer_conR dl a:hover{text-decoration:underline;}
#Copy{width:100%; height:125px; background:url("../images/footerbg.jpg"); font-size:12px; color:#fff;
 text-align:center; line-height:35px; padding-top:15px;}
#Copy span{font-weight:bold;}
#Copy a{ color:#fff; text-decoration:none; padding:0px 5px;}
#Copy a:hover{text-decoration:underline;}

#fixedBox{width:100%; height:50px; background:#e20076; }
.scrollDisplay{position:fixed; left:0px; bottom:0px;
   _position:absolute; z-index:3;
   _top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight);}

#fixedBox #fixedBox_Con{width:1000px; height:50px;  margin:0px auto;}
#fixedBox #fixedBox_Con ul li{width:200px; height:50px;line-height:50px; float:left;color:#fff;font-size:20px;}
#fixedBox #fixedBox_Con ul li.li1{width:300px;  
     background:url("../images/fixedLine.jpg") no-repeat right top;}
#fixedBox #fixedBox_Con ul li.li1 span{font-weight:bold;}
#fixedBox #fixedBox_Con ul li.li2{background:url("../images/fixedLine.jpg") no-repeat right top; padding-left:20px;}
#fixedBox #fixedBox_Con ul li.li2 a{color:#fff; font-size:14px; text-decoration:none; background:#CC6633;
 padding:2px; border:1px solid #ccc;}
#fixedBox #fixedBox_Con ul li.li3{background:url("../images/news.png") no-repeat 160px 5px; padding-left:20px;}
#fixedBox #fixedBox_Con ul li.li3 a{color:#fff; text-decoration:none; }
#fixedBox #fixedBox_Con ul li.li4{padding-top:8px;height:42px;line-height:42px; }
#fixedBox #fixedBox_Con ul li.li4 a{display:block; float:left;width:auto; height:auto; }
#fixedBox #fixedBox_Con ul li.li4 a.wxrelative{position:relative;}
#fixedBox #fixedBox_Con ul li.li4 a.wxrelative img.erm{ position:absolute;left:-35px; top:-98px;  display:none;}
/*在线客服样式*/
#Kf{width:143px; height:440px; background:url("../images/kf.jpg"); position:absolute; top:100px; 
  right:0px; z-index:4;padding-top:70px; }
#Kf ul li{height:20px; margin-top:8px; text-align:center; line-height:20px;}
#Kf ul li a{color:#fff; text-decoration:none; font-size:12px;}
#Kf p{ padding:50px 0px 0px 15px;}
#Kf .kfWx{width:98px; height:98px; margin:90px auto 0px;}
#Kf img.but_close{position:absolute; top:-18px;right:0px;}

 /*内页主体样式*/
img{border:0px;}
.webBody{background:#f4f4f4;}
/*面包屑导航样式*/
.webLogo {width:1000px; height:68px;  margin:0px auto; border-bottom:2px solid #dd85b3;
   background:url("../images/position.png") no-repeat left center; font-size:14px;
   line-height:68px; text-indent:20px;}
.webLogo a{color:#666; text-decoration:none; }
.webLogo a:hover{color:#e20076; text-decoration:underline;}
#WebCon{width:1000px;  background:url("../images/webbg1.png") no-repeat,
         url("../images/webbg2.png") no-repeat right top #fff; margin:0px auto; border:1px solid red;}
#web_Menu{width:940px; margin:30px auto 15px;}
#web_Menu dl{width:100%;height:30px;  margin-bottom:5px;}
#web_Menu dl dt{width:180px; height:30px; background:#ededed; float:left; font-size:14px;
    text-align:center;line-height:30px; font-weight:bold;}
#web_Menu dl dt a{display:block; color:#000; text-decoration:none; cursor:default;/*鼠标状态*/}
#web_Menu dl dt a:hover{background:#e10076; color:#fff;}
#web_Menu dl dd{width:758px;height:30px; background:#f4f4f4; float:right; line-height:30px; }
#web_Menu dl dd a{font-size:14px; color:#000;text-decoration:none;
     float:left; padding:0px 10px;}
#web_Menu dl dd a:hover{color:#e10076;}
/*第页第一部分样式*/
#webPart1{width:940px;margin:0px auto 20px;}
img.webbg3{ display:block;margin:0px auto;}
/*左边轮播器样式*/
#webPart1_l{width:361px; height:270px; background:green; float:left;}
#webPart2_r{width:568px; height:270px; background:#f9f9f9; float:right; border:1px dashed #e20076;
   position:relative;}
#webPart2_r img.dirl{position:absolute; left:0px; top:100px;}
#webPart2_r img.dirr{position:absolute; right:0px; top:100px;}
#webPart2_r #webPart2_Scroll{width:504px; height:210px; overflow:hidden;/*隐藏*/ margin:40px auto 0px; position:relative;}
#webPart2_r #webPart2_Scroll .webPart2_ScrollCon{width:1000%;height:210px; position:absolute; 
        left:0px;/*滚动就是改变他的值*/}
#webPart2_r #webPart2_Scroll .webPart2_ScrollCon dl{width:150px;height:210px; float:left; margin:0px 9px;}
#webPart2_r #webPart2_Scroll .webPart2_ScrollCon dl dt{width:150px; height:150px; background:yellow;}
#webPart2_r #webPart2_Scroll .webPart2_ScrollCon dl dd{font-size:12px; text-align:center; height:25px;
       line-height:25px;}
#webPart2_r #webPart2_Scroll .webPart2_ScrollCon dl dd a{color:#000; text-decoration:none;}
#webPart2_r #webPart2_Scroll .webPart2_ScrollCon dl dd a:hover{color:#e10076;}
#webPart2_r #webPart2_Scroll .webPart2_ScrollCon dl dd span{color:#e10076; font-weight:bold;}

图片

图片

图片

图片

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值