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

图文焦点图代码(html焦点图代码)

admin 发布:2022-12-19 06:13 129


本篇文章给大家谈谈图文焦点图代码,以及html焦点图代码对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。

本文目录一览:

焦点图代码怎吗加到ps网页制作设计图中

用ps将图片打开 选择焦点图片,按ctrl+A全选,然后按ctrl+C复制,接着按Ctrl+N新建ps图片,大小已经根据你复制的图片大小选定,直接确定新建,然后粘贴就over了

关于flash八屏焦点图代码问题?

凭我的经验,问题不应该出在这段flash代码中(既然本地测试没有问题,那么就不应该是flash里的代码出问题,如果flash代码出了问题你本地的测试就不会正常),应该是你的html文件的问题,很有可能是你的js之间的执行顺序有问题,当我在ie浏览器里刷新一次才会出现,也就是说此时js代码才执行。而在遨游里则无论刷新多少次相应的js代码都不会执行......

以上仅是本人经验,只给你作参考.......

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

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代码,切换问题

能否提供一下这段代码所依附的html代码?(这样会极大的提高调试效率)

图文焦点图代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于html焦点图代码、图文焦点图代码的信息别忘了在本站进行查找喔。

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

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


取消回复欢迎 发表评论:

分享到

温馨提示

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

联系我们反馈

立即下载