当前位置:首页 > 代码 > 正文

包含自适应全屏焦点图代码的词条[20240424更新]

admin 发布:2024-04-24 15:05 102


今天给各位分享自适应全屏焦点图代码的知识,其中也会对进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

本文目录一览:

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

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

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""

html xmlns=""

head

meta http-equiv="Content-Type" content="text/html; charset=UTF-8"

meta http-equiv="Content-Language" content="zh-CN"

meta name="Keywords" content="SuperSlide,jQuery-实用焦点图"

meta name="Description" content="SuperSlide,jQuery-实用焦点图"

titleSuperSlide - 实用焦点图/title

script src=""/script

script src="jquery.SuperSlide.2.1.1.js"/script

/head

body

style type="text/css"        

*{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;  }    

/style

div class="focusBox" style="margin:0 auto"

    ul class="pic"

        lia href="#" target="_blank"img src="images/1.jpg"//a/li

        lia href="#" target="_blank"img src="images/2.jpg"//a/li

        lia href="#" target="_blank"img src="images/3.jpg"//a/li

        lia href="#" target="_blank"img src="images/4.jpg"//a/li

    /ul

    div class="txt-bg"/div

    div class="txt"

        ul

            lia href="#"SuperSlide美女福利图Quiet/a/li

            lia href="#"SuperSlide美女福利图DoubleLi/a/li

            lia href="#"SuperSlide美女福利图爱的练习曲/a/li

            lia href="#"SuperSlide美女福利图夜莺/a/li

        /ul

    /div

    ul class="num"

        lia1/aspan/span/li

        lia2/aspan/span/li

        lia3/aspan/span/li

        lia4/aspan/span/li

    /ul

/div

script type="text/javascript"

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

        });

    }

});

/script

/body

/html

焦点图代码怎么放到网页上显式呢?

试试这个焦点图

有12345数字一起切换

鼠标点一下数字会变换到另一张图片,不点就会自动换

里面有教程和源码

淘宝店里的焦点图是如何制作的

DIV style="height:245px;width:400px; " class="slider-promo J_Slider"ulliA href="http://你商品的连接" target=_blankimg alt="宝贝名字" src="http://你图片的地址" border="0"/A/liliA href="DIV style="height:245px;width:400px; " class="slider-promo J_Slider"ulliA href="http://你商品的连接" target=_blankimg alt="宝贝名字" src="http://你图片的地址" border="0"/A/liliA href="DIV style="height:245px;width:400px; " class="slider-promo J_Slider"ulliA href="http://你商品的连接" target=_blankimg alt="宝贝名字" src="http://你图片的地址" border="0"/A/li/ul/DIV

下边我给你说一下信息div style=这里是图片的大小像素class=是轮播的属性ul后边是浮动li这个一定要在ul的下边liA href="DIV style="height:245px;width:400px; " class="slider-promo J_Slider"ulliA href="http://你商品的连接" target=_blankimg alt="宝贝名字" src="http://你图片的地址" border="0"/A/li这串代码是指你每个轮播图片的属性你需要添加一个轮播就要在/li后边添加轮播图片属性代码!如果还是不懂请追问!

自适应网页宽度jquery焦点图能在淘宝上面用吗

自适应网页宽度jQuery焦点图代码,自动适应网页宽度,100%显示,幻灯图片和背景分裂,调用简单代码简洁,一流素材网推荐,基于jQuery的一款焦点幻灯图切换代码,支持自适应全屏宽度拉伸显示,以左右滑动式切换幻灯图片,代码简洁实用...

dreamweaver8做网页,焦点图代码怎么放

1.打开软件dreamweaver8写如下代码,如图:

调用CSS样式:link rel="stylesheet" type="text/css" href="css/style.css" /

调用JS插件代码:script type="text/javascript" src="js/jquery.js"/script

!--效果html开始--

script type="text/javascript" src="js/jquery.js"/script

script type="text/javascript"

$(function(){

var aPage = $('#main .page a'); //分页按钮

var aImg = $('#main .box img'); //图像集合

var iSize = aImg.size(); //图像个数

var index = 0; //切换索引

var t;

$('#btnLeft').click(function(){ //左边按钮点击

index--;

if(index0){

index=iSize-1

}

change(index)

})

$('#btnRight').click(function(){    //右边按钮点击

index++;

if(indexiSize-1){

index=0

}

change(index)

})

//分页按钮点击

aPage.click(function(){

index = $(this).index();

change(index)

});

//切换过程

function change(index){

aPage.removeClass('active');

aPage.eq(index).addClass('active');

aImg.stop();

//隐藏除了当前元素,所以图像

aImg.eq(index).siblings().animate({

opacity:0

},1000)

//显示当前图像

aImg.eq(index).animate({

opacity:1

},1000)

}

function autoshow() {

index=index+1;

if(index=iSize-1){

  change(index);

}else{

index=0;

change(index);

}

}

int=setInterval(autoshow,3000);

function clearInt() {

$('#btnLeft,#btnRight,.page a').mouseover(function() {

clearInterval(int);

})

}

function setInt() {

$('#btnLeft,#btnRight,.page a').mouseout(function() {

int=setInterval(autoshow,3000);

})

}

clearInt();

setInt();

})

/script

div id="main"

a class="btnLeft" id="btnLeft" href="javascript:void(0);"/a

a class="btnRight" id="btnRight" href="javascript:void(0);"/a

div class="box"

img style="opacity:1;filter:alpha(opacity=100);" src="images/图片名称1.jpg" /

img src="images/图片名称2.jpg" / img src="images/图片名称3.jpg" / /div

div class="page"

a class="active" href="javascript:void(0);"1/a

a href="javascript:void(0);"2/a a href="javascript:void(0);"3/a

/div

/div

!--效果html结束--

2.最后查看聚焦效果图,如图:

jquery 自适应的全屏淡入淡出焦点图控制时间

把var SPEED = 5000;改成2500就行了

如果设置成5000是10秒 ,那你改成一半就好了

肯定是程序里那个设置 导致 了双倍的延迟

具体是哪个得慢慢找了

快速的解决办法 就像上面说的。

关于自适应全屏焦点图代码和的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。

版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;

本文地址:http://ahzz.com.cn/post/453.html


取消回复欢迎 发表评论:

分享到

温馨提示

下载成功了么?或者链接失效了?

联系我们反馈

立即下载