最值一看-------轮播图

news/2024/11/9 17:00:00

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>最值衣看</title>
<link href="http://www.hc360.com/chat/2014/0527/css/styles.css" rel="stylesheet" type="text/css">

</head>

<body>
<!-- 顶部导航 -->

<div class="navbox">
       <div class="nav">
              <h2><img src="http://www.hc360.com/chat/2014/0527/images/tt.jpg" width="144" height="44"></h2>
              <ul>
                  <li class="hbg">衣周最看点</li>
                  <li>衣周最潮搭</li>
                  <li>衣周最星闻</li>
                  <li>衣身衣饰</li>
              </ul>
       </div>
</div>


<div class="mainbox cl">
      <p class="btn_left"></p>
          <div class="boxc">
               <div class="wwws">
               <div class="main1_w">
                <div class="main1">
                       <div class="main1_left">
                               <div class="tu1">
                                     <ul class="ul_width">
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                     </ul>
                                     <ol class="hcbg"><li class="hover1"></li><li></li><li></li></ol>
                               </div>
                               <div class="tu2">
                                     <h3>2014夏季新款</h3>
                                     <p>卧室系列<span>别墅违建猜不到</span></p>
                               </div>
                       </div>
                       <div class="main1_right">
                              <ul>
                                   <li class="li_1">
                                          <h3>2014夏季新款</h3>
                                          <p>卧室系列<span>别墅违建拆不倒 业主曾</span></p>
                                          <p class="p_1">产品包装与宣传到底能不能一
        口吃成胖子,#2014户外帐篷评选
        来告诉你, 确实,天下没有白吃的
        午餐,但是确实有......<a href="#" target="_blank">【详细】</a></p>
                                   </li>
                                   <li class="li_2"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img2.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   
                                   <li class="li_3"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img3.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   
                                   
                                   <li class="li_4"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img3.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   <li class="li_5"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img2.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   <li class="li_1 li_6">
                                          <h3>2014夏季新款</h3>
                                          <p>卧室系列<span>别墅违建拆不倒 业主曾</span></p>
                                          <p class="p_1">产品包装与宣传到底能不能一
        口吃成胖子,#2014户外帐篷评选
        来告诉你, 确实,天下没有白吃的
        午餐,但是确实有......<a href="#" target="_blank">【详细】</a></p>
                                   </li>
                              </ul>
                       </div>
                </div>
                
                 <div class="main1">
                       <div class="main1_left">
                               <div class="tu1_2">
                                     <ul class="ul_width_2">
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                     </ul>
                                     <ol class="hcbg_2"><li class="hover1"></li><li></li><li></li></ol>
                               </div>
                               
                               <div class="tu2">
                                     <h3>2014夏季新款</h3>
                                     <p>卧室系列<span>别墅违建猜不到</span></p>
                               </div>
                       </div>
                       <div class="main1_right">
                              <ul>
                                   <li class="li_1">
                                          <h3>2014夏季新款</h3>
                                          <p>卧室系列<span>别墅违建拆不倒 业主曾</span></p>
                                          <p class="p_1">产品包装与宣传到底能不能一
        口吃成胖子,#2014户外帐篷评选
        来告诉你, 确实,天下没有白吃的
        午餐,但是确实有......<a href="#" target="_blank">【详细】</a></p>
                                   </li>
                                   <li class="li_2"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img2.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   
                                   <li class="li_3"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img3.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   
                                   
                                   <li class="li_4"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img3.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   <li class="li_5"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img2.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   <li class="li_1 li_6">
                                          <h3>2014夏季新款</h3>
                                          <p>卧室系列<span>别墅违建拆不倒 业主曾</span></p>
                                          <p class="p_1">产品包装与宣传到底能不能一
        口吃成胖子,#2014户外帐篷评选
        来告诉你, 确实,天下没有白吃的
        午餐,但是确实有......<a href="#" target="_blank">【详细】</a></p>
                                   </li>
                              </ul>
                       </div>
                 </div>
                
                <div class="main1">
                       <div class="main1_left">
                               <div class="tu1_3">
                                     <ul class="ul_width_3">
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                     </ul>
                                     <ol class="hcbg_3"><li class="hover1"></li><li></li><li></li></ol>
                               </div>
                               
                               <div class="tu2">
                                     <h3>2014夏季新款</h3>
                                     <p>卧室系列<span>别墅违建猜不到</span></p>
                               </div>
                       </div>
                       <div class="main1_right">
                              <ul>
                                   <li class="li_1">
                                          <h3>2014夏季新款</h3>
                                          <p>卧室系列<span>别墅违建拆不倒 业主曾</span></p>
                                          <p class="p_1">产品包装与宣传到底能不能一
        口吃成胖子,#2014户外帐篷评选
        来告诉你, 确实,天下没有白吃的
        午餐,但是确实有......<a href="#" target="_blank">【详细】</a></p>
                                   </li>
                                   <li class="li_2"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img2.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   
                                   <li class="li_3"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img3.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   
                                   
                                   <li class="li_4"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img3.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   <li class="li_5"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img2.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   <li class="li_1 li_6">
                                          <h3>2014夏季新款</h3>
                                          <p>卧室系列<span>别墅违建拆不倒 业主曾</span></p>
                                          <p class="p_1">产品包装与宣传到底能不能一
        口吃成胖子,#2014户外帐篷评选
        来告诉你, 确实,天下没有白吃的
        午餐,但是确实有......<a href="#" target="_blank">【详细】</a></p>
                                   </li>
                              </ul>
                       </div>
                 </div>
                
                
                <div class="main1">
                       <div class="main1_left">
                               <div class="tu1_4">
                                     <ul class="ul_width_4">
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                          <li><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img1.jpg" width="360" height="518"></a></li>
                                     </ul>
                                     <ol class="hcbg_4"><li class="hover1"></li><li></li><li></li></ol>
                               </div>
                               
                               <div class="tu2">
                                     <h3>2014夏季新款</h3>
                                     <p>卧室系列<span>别墅违建猜不到</span></p>
                               </div>
                       </div>
                       <div class="main1_right">
                              <ul>
                                   <li class="li_1">
                                          <h3>2014夏季新款</h3>
                                          <p>卧室系列<span>别墅违建拆不倒 业主曾</span></p>
                                          <p class="p_1">产品包装与宣传到底能不能一
        口吃成胖子,#2014户外帐篷评选
        来告诉你, 确实,天下没有白吃的
        午餐,但是确实有......<a href="#" target="_blank">【详细】</a></p>
                                   </li>
                                   <li class="li_2"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img2.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   
                                   <li class="li_3"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img3.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   
                                   
                                   <li class="li_4"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img3.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   <li class="li_5"><a href="#" target="_blank"><img src="http://www.hc360.com/chat/2014/0527/images/img2.jpg" width="254" height="294"></a><p>见巴基斯坦参议院主席</p></li>
                                   <li class="li_1 li_6">
                                          <h3>2014夏季新款</h3>
                                          <p>卧室系列<span>别墅违建拆不倒 业主曾</span></p>
                                          <p class="p_1">产品包装与宣传到底能不能一
        口吃成胖子,#2014户外帐篷评选
        来告诉你, 确实,天下没有白吃的
        午餐,但是确实有......<a href="#" target="_blank">【详细】</a></p>
                                   </li>
                              </ul>
                       </div>
                 </div>
                
               </div>
          </div>
          </div>
      <p class="btn_right"></p>

</div>

<!-----------footer---------->
 
 <script src="http://www.hc360.com/chat/2014/0527/js/jquery-1.10.2.min.js"></script>
<script src="http://www.hc360.com/chat/2014/0527/js/jsxg.js"></script>
</body>
</html>

 

.navbox{ padding-top:20px; height:50px; line-height:50px; margin-bottom:10px; border-bottom:3px #E1BE4A solid; width:100%;}
.nav{ width:1144px; margin:0 auto;}
.nav h2{ float:left; width:210px;}
.nav ul{ float:left; width:600px; margin-top:8px;}
.nav ul li{ float:left; width:114px; height:42px; text-align:center; line-height:42px; font-family:"微软雅黑"; font-size:14px; color:#A48109; cursor:pointer;}
.nav ul li.hbg{ background:#E1BE4A; color:#FFF;}

.mainbox{ width:1144px; margin:0 auto; position:relative;}
.boxc{ width:1144px; margin:0 auto; overflow:hidden; position:relative;}
.mainbox .btn_left{ background:url(../images/leftbtn.jpg) no-repeat; width:85px; height:120px; cursor:pointer; position:absolute; left:-100px; top:200px;}
.mainbox .btn_right{ background:url(../images/rightbtn.jpg) no-repeat; width:85px; height:120px; cursor:pointer; position:absolute; right:-100px; top:200px;}

.main1{ width:1144px; height:602px; float:left;}
.wwws{ width:1144px; height:602px; overflow:hidden;}
.main1_left{ float:left; width:360px;}
.main1_right{ float:right; width:776px;}


.tu1{ width:360px; height:518px; position:relative; overflow:hidden;}
.tu1 .ul_width{ width:2000px;}
.tu1 .ul_width li{ float:left; width:360px;}
.tu1 .hcbg{ height:30px; position:absolute; right:20px; bottom:0;}
.tu1 .hcbg li{ background:url(../images/hbg1.png) no-repeat; width:18px; height:18px; float:left; margin-left:10px; cursor:pointer;}
.tu1 .hcbg li.hover1{ background:url(../images/hbg2.png) no-repeat;}

.tu1_2{ width:360px; height:518px; position:relative; overflow:hidden;}
.tu1_2 .ul_width_2{ width:2000px;}
.tu1_2 .ul_width_2 li{ float:left; width:360px;}
.tu1_2 .hcbg_2{ height:30px; position:absolute; right:20px; bottom:0;}
.tu1_2 .hcbg_2 li{ background:url(../images/hbg1.png) no-repeat; width:18px; height:18px; float:left; margin-left:10px; cursor:pointer;}
.tu1_2 .hcbg_2 li.hover1{ background:url(../images/hbg2.png) no-repeat;}


.tu1_3{ width:360px; height:518px; position:relative; overflow:hidden;}
.tu1_3 .ul_width_3{ width:2000px;}
.tu1_3 .ul_width_3 li{ float:left; width:360px;}
.tu1_3 .hcbg_3{ height:30px; position:absolute; right:20px; bottom:0;}
.tu1_3 .hcbg_3 li{ background:url(../images/hbg1.png) no-repeat; width:18px; height:18px; float:left; margin-left:10px; cursor:pointer;}
.tu1_3 .hcbg_3 li.hover1{ background:url(../images/hbg2.png) no-repeat;}


.tu1_4{ width:360px; height:518px; position:relative; overflow:hidden;}
.tu1_4 .ul_width_4{ width:2000px;}
.tu1_4 .ul_width_4 li{ float:left; width:360px;}
.tu1_4 .hcbg_4{ height:30px; position:absolute; right:20px; bottom:0;}
.tu1_4 .hcbg_4 li{ background:url(../images/hbg1.png) no-repeat; width:18px; height:18px; float:left; margin-left:10px; cursor:pointer;}
.tu1_4 .hcbg_4 li.hover1{ background:url(../images/hbg2.png) no-repeat;}





.tu2{ width:360px; height:84px; background:#A09C6D;}
.tu2 h3{ font-size:18px; color:#FFF; font-weight:normal; height:30px; padding:10px 0 10px 20px; line-height:30px; font-family:"微软雅黑";}
.tu2 p{ font-size:16px; color:#FFF; padding-left:20px;}
.tu2 p span{ font-size:12px; padding-left:10px;}

.main1_right ul li{ height:296px; width:255px; float:left;}
.main1_right ul li.li_1{ height:296px; width:255px; background:#C28D97; }
.main1_right ul li.li_1 h3{ font-size:18px; color:#FFF; font-weight:normal; height:30px; padding:50px 0 10px 20px; line-height:30px; font-family:"微软雅黑";}
.main1_right ul li.li_1 p{ font-size:16px; color:#FFF; padding-left:20px;}
.main1_right ul li.li_1 p span{ font-size:12px; padding-left:10px;}

.main1_right ul li.li_1 .p_1{ font-size:12px; padding:0 30px; text-indent:24px; line-height:22px; padding-top:10px;}
.main1_right ul li.li_1 .p_1 a{ text-decoration:none; color:#FFF;}
.main1_right ul li.li_1 .p_1 a:hover{ text-decoration:underline;}
.main1_right ul li.li_2{ height:294px; width:254px; border:1px #C28D97 solid; position:relative;}
.main1_right ul li.li_2 p{ width:254px; height:30px; line-height:30px; text-align:center; color:#FFF; background:#000; opacity:0.8; filter:alpha(opacity=80);-moz-opacity:0.8; position:absolute; left:0; bottom:0;}

.main1_right ul li.li_3{ height:294px; width:254px; border:1px #C28D97 solid; position:relative;}
.main1_right ul li.li_3 p{ width:254px; height:30px; line-height:30px; text-align:center; color:#FFF; background:#000; opacity:0.8; filter:alpha(opacity=80);-moz-opacity:0.8; position:absolute; left:0; bottom:0;}

.main1_right ul li.li_4{ height:294px; width:254px; border:1px #C28D97 solid; position:relative;}
.main1_right ul li.li_4 p{ width:254px; height:30px; line-height:30px; text-align:center; color:#FFF; background:#000; opacity:0.8; filter:alpha(opacity=80);-moz-opacity:0.8; position:absolute; left:0; bottom:0;}

.main1_right ul li.li_5{ height:294px; width:254px; border:1px #C28D97 solid; position:relative;}
.main1_right ul li.li_5 p{ width:254px; height:30px; line-height:30px; text-align:center; color:#FFF; background:#000; opacity:0.8; filter:alpha(opacity=80);-moz-opacity:0.8; position:absolute; left:0; bottom:0;}

.main1_right ul li.li_3{ height:296px; width:255px; border:0 none; margin-left:10px;}

.main1_right ul li.li_4{ height:296px; width:255px; margin-top:10px; border:0 none;}
.main1_right ul li.li_5{ height:294px; width:254px; margin-left:10px; margin-top:10px; border:1px #7D8999 solid;}
.main1_right ul li.li_6{ height:296px; width:255px; background:#7D8999; margin-top:10px; }

.main1_w{ width:6000px;}

 


$(document).ready(function(){
    
    //banner1
    function st(a1,b1,c1,d1,e1){
       var ow=a1.width();
       var repeat;
       var index=0;
       var len=a1.length;
       //alert(len)
          c1.hover(function(){
             clearInterval(repeat)
          },function(){
           repeat=setInterval(function(){
              index++;
              if(index==len)
              index=0;
              ht(index)
              },3000)
           }).trigger("mouseout");

         b1.mouseover(function(){
             index=b1.index(this);
             ht(index)
         });
 
         function ht(index){
            d1.stop().animate({"marginLeft":-ow*index});                  
            b1.eq(index).addClass(e1).siblings().removeClass(e1);
         };
       
    };
      st($(".ul_width li"),$(".hcbg li"),$(".tu1"),$(".ul_width"),("hover1"));
      st($(".ul_width_2 li"),$(".hcbg_2 li"),$(".tu1_2"),$(".ul_width_2"),("hover1"));
      st($(".ul_width_3 li"),$(".hcbg_3 li"),$(".tu1_3"),$(".ul_width_3"),("hover1"));
      st($(".ul_width_4 li"),$(".hcbg_4 li"),$(".tu1_4"),$(".ul_width_4"),("hover1"));
      
      
      
          //点击效果
        var ww1=$(".main1").width();
        var li_length1=$(".main1").length;
        var index=0;

   
/*   $(".btn_left").click(function(){
           $(".main1_w").animate({"marginLeft":-ww1},500,function(){
             var firstli1=$( ".main1_w .main1:first" );
                 firstli1.appendTo( "main1_w" );
                 $( ".main1_w" ).css({"marginLeft":0});
           });

    });
 
         $(".btn_right").click(function(){
              var lastli1=$( ".main1_w .main1:last" );
                  lastli1.prependTo( ".main1_w" );
                  $( ".main1_w" ).css({"marginLeft":-ww1});
                  $(".main1_w").animate({"marginLeft":0},500);

           });*/
           
           
           $(".nav li").mouseover(function(){
                  var index=$(this).index();
                  var width=$('.main1').width();
                 $( this ).addClass( "hbg" ).siblings().removeClass("hbg");
                 $( ".main1_w" ).stop().animate({'marginLeft':-width*index},500);
            })
            
            
            
             //banner
     var oWidth=$('.main1').width(),
         repeat,
         index=0,
         len=$('.main1').length;
        //console.log(len)
    
   $('.btn_right').click(function(){
           index+=1;
           if(index>=len){index=0;}
           ht(index);
    })
    
     $('.btn_left').click(function(){
          index-=1;
          if(index<0){ index=len-1}
          ht(index);
    });
     function ht(){
      $('.main1_w').stop().animate({'marginLeft':-oWidth*index})
      $('.nav li').eq(index).addClass('hbg').siblings().removeClass('hbg');
   };
           
        
    
});

转载于:https://www.cnblogs.com/su1637/p/8204354.html


http://www.niftyadmin.cn/n/1999126.html

相关文章

邮槽使用例子

接受端源代码&#xff1a; void CMailslotSrvView::OnMailslotsrv(){ // TODO: Add your command handler code here HANDLE hMailslot NULL; char buf[100] "/0"; DWORD dwRead 0; hMailslot CreateMailslot(".//mailslot//mymailslot", 0, MAILSLOT…

深入理解 React JS 中的 setState

此文主要探讨了 React JS 中的 setState 背后的机制&#xff0c;供深入学习 React 研究之用。 在课程 React.js入门基础与案例开发 中&#xff0c;有些同学会发现 React JS 中的 setState 的表现好像有点怪异&#xff0c;和理解中的 state 更新机制不太一样&#xff0c;下面我们…

mysql和mysqla_mysql(连接查询和数据库设计)

--创建学生表create table students (id int unsigned not null auto_increment primary key,name varchar(20) default ,age tinyint unsigned default 0,high decimal(5,2),gender enum(男, 女, 中性, 保密) default 保密,cls_id int unsigned default 0,is_delete bit defau…

使用nginx作为websocket的proxy server

blog.csdn.net/zhx6044/article/details/50278765 WebSocket WebSocket协议为创建客户端和服务器端需要实时双向通讯的webapp提供了一个选择。其为HTML5的一部分&#xff0c;WebSocket相较于原来开发这类app的方法来说&#xff0c;其能使开发更加地简单。大部分现在的浏览器都支…

命名管道例子

Server: // CNamedPipeClientView 消息处理程序voidCNamedPipeClientView::OnNamedpipeConnect(){ // TODO: Add your command handler code hereif (!WaitNamedPipe("//./pipe/mypipe", NMPWAIT_WAIT_FOREVER)) { MessageBox("there is no usable…

mysql 全文索引 使用_MySql全文索引

使用索引是数据库性能优化的必备技能之一。在MySQL数据库中&#xff0c;有四种索引&#xff1a;聚集索引(主键索引)、普通索引、唯一索引以及我们这里将要介绍的全文索引(FULLTEXT INDEX)。全文索引(也称全文检索)是目前搜索引擎使用的一种关键技术。它能够利用「分词技术「等多…

php 数组排序 按照某字段

$arr[array(name>小坏龙,age>28),array(name>小坏龙2,age>14),array(name>小坏龙3,age>59),array(name>小坏龙4,age>23),array(name>小坏龙5,age>23),array(name>小坏龙6,age>21),];array_multisort(array_column($arr,age),SORT_DESC,$ar…

给同学的第一次工作的一封信

小伟、小杰、阿刚&#xff1a;你们好&#xff01;看到你们对工作的热情真的好让我感动。这让我想到了去年和前年时暑假的我。满怀着激情和憧憬去找工作&#xff0c;去努力的发展自己&#xff0c;强大自己。这种感觉真好&#xff01;开始工作是件很好的事情&#xff0c;是人生的…