Jquery.SuperSlide扩展效果里的实用焦点图效果代码,求大神,谢谢

2025-06-23 00:22:14
推荐回答(3个)
回答1:

以下是全部代码,请自行修改图片及js路径








SuperSlide - 实用焦点图




        
*{margin:0; padding:0; list-style:none; }
body{ background:#fff; font:normal 12px/22px 宋体;  }
img{ border:0;  }
a{ text-decoration:none; color:#333;  }
a:hover{ color:#1974A1;  }
.focusBox { position: relative; width: 320px; height: 240px; overflow: hidden; font: 12px/1.5 Verdana, Geneva, sans-serif; text-align: left; background: white; }
.focusBox .pic img { width: 320px; height: 240px; display: block; }
.focusBox .txt-bg { position: absolute; bottom: 0; z-index: 1; height: 36px; width:100%;  background: #333; filter: alpha(opacity=40); opacity: 0.4; overflow: hidden; }
.focusBox .txt { position: absolute; bottom: 0; z-index: 2; height: 36px; width:100%; overflow: hidden; }
.focusBox .txt li{ height:36px; line-height:36px; position:absolute; bottom:-36px;}
.focusBox .txt li a{ display: block; color: white; padding: 0 0 0 10px; font-size: 12px; font-weight: bold; text-decoration: none; }
.focusBox .num { position: absolute; z-index: 3; bottom: 8px; right: 8px; }
.focusBox .num li{ float: left; position: relative; width: 18px; height: 15px; line-height: 15px; overflow: hidden; text-align: center; margin-right: 1px; cursor: pointer; }
.focusBox .num li a,.focusBox .num li span { position: absolute; z-index: 2; display: block; color: white; width: 100%; height: 100%; top: 0; left: 0; text-decoration: none; }
.focusBox .num li span { z-index: 1; background: black; filter: alpha(opacity=50); opacity: 0.5; }
.focusBox .num li.on a,.focusBox .num a:hover{ background:#f60;  }    


    
        

  •         

  •         

  •         

  •     
        

        
            

                  
    • SuperSlide美女福利图Quiet

    •             
    • SuperSlide美女福利图DoubleLi

    •             
    • SuperSlide美女福利图爱的练习曲

    •             
    • SuperSlide美女福利图夜莺

    •         

        

        
            
  • 1

  •         
  • 2

  •         
  • 3

  •         
  • 4

  •     


    jQuery(".focusBox").slide({
        titCell : ".num li",
        mainCell : ".pic",
        effect : "fold",
        autoPlay : true,
        trigger : "click",
        startFun : function (i) {
            jQuery(".focusBox .txt li").eq(i).animate({
                "bottom" : 0
            }).siblings().animate({
                "bottom" : -36
            });
        }
    });


    回答2:

    1.把在线预览里调好参数。
    2.把当前调用代码复制到下载的文件demo/iframe/10.0-txtMarquee-top-iframe.html里,替换jquery代码,即可修改效果。

    回答3:

    $(function(){$('#v-focus-nav ul li').mouseover(function(){$(this).addClass("cur").siblings().removeClass('cur');$('#v-focus-picbox ul li').eq($(this).index()).fadeIn().siblings().hide();});var length=$('#v-focus-nav ul li').length;function ro(){var cur=$('#v-focus-nav ul .cur');console.log(cur);next=(cur.index()

    相关问答
    最新问答