首页 > 编程知识 正文

7栏js焦点图代码(js焦点图特效)

时间:2023-12-12 12:54:07 阅读:314759 作者:ODBX

本文目录一览:

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

js焦点图代码怎么用啊?

换这个图片切换试试吧

切换时间可以自己设置

有12345数字一起切换

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

里面有教程和源码

什么是焦点图

网站焦点图是一种网站内容的展现形式,可简单理解为一张图片或多张图片展现在网页上就是网站焦点图。在网站很明显的位置,用图片组合播放的形式,类似焦点新闻的意思只不过加上了图片。

css焦点图,不难理解网页设计现在流程html+css设计,css焦点图就是这样而来的,很多情况下需要结合js代码实现。

分类:

焦点图必须有图片,无图不成焦,不然纯文字的形式就是焦点文字或焦点新闻啦。

js焦点图,使用原生态的js代码实现的焦点图。样式相对单一,如借助css可实现多样的风格。

flash焦点图,看名字就可以理解,使用flash设计或用flash as编程设计的焦点图。该焦点图优点是字体展现效果佳,比纯网页形式更具有美感。不利于SEO与引擎的抓取。

以上内容参考:百度百科-网站焦点图

js焦点图切换图片的数字按钮代码怎么写?要有鼠标点击、经过、离开的效果的

div style="background-color: silver;padding:60px;width:130px" onclick="this.style.backgroundColor='green'" onmousemove="this.style.backgroundColor='yellow'" onmouseout="this.style.backgroundColor='silver'" 520/div

关于JS焦点图广告代码,下面网址是源码。为什么下载后在DW运行不能显示图片。

试试这个焦点图

有12345数字一起切换

有小图大图一起切换

里面有教程和源码

下载后的JS焦点图代码怎么用

你看得懂就自然知道怎么样,你要是看不懂,这里也没法给你说清楚!

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。