轮播图片

来源:互联网 发布:大连董萍 知乎 编辑:程序博客网 时间:2024/06/12 08:23

所谓轮播就是同一套节目以一定时间间隔(10分钟)采用多个频道进行循环播放,用户通过频道选择来达到前进后退的视频点播效果。片源一般放在运营商的IPTV平台中。这种业务也是传统直播业务的改良形式,是介于点播和直播的一种播放方式,特别适合于热门新片播放和热点事件报道,以求在短时间内有效分流业务和扩充服务能力。

在网页上轮播图片,是为了使页面更加的美观

代码:

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>

    <link href="BootstrapSouce/css/bootstrap.min.css" rel="stylesheet" />

    <script src="BootstrapSouce/js/jquery.min.js"></script>

    <script src="BootstrapSouce/js/bootstrap.min.js"></script>

</head>

<body>

    <div id="myCarousel" class="carousel slide">

        <ol class="carousel-indicators">

            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>

            <li data-target="#myCarousel" data-slide-to="1"></li>

            <li data-target="#myCarousel" data-slide-to="2"></li>

        </ol> 

        <div class="carousel-inner" style="width:960px;margin:0px auto">

            <div class="item active">

                <img src="img/slide1.jpg" alt="Frist slide" />

            </div>

            <div class="item">

                <img src="img/slide2.jpg" alt="Second slide" />

            </div>

            <div class="item">

                <img src="img/slide3.jpg" alt="Thrid slide" />

            </div>

        </div>

        <a class="carousel-control left" style="line-height:420px;"href="#myCarousel"data-slide="prev">

            <img src="img/l.png" />

        </a>

        <a class="carousel-control right" style="line-height:420px;"href="#myCarousel" data-slide="next">

            <img src="img/r.png" />

        </a>

    </div>

</body>

</html>


另一种轮播图片

代码

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

    <title>jquery全景图片自动缓慢左右移动演示预览 - 模板王JS网页特效</title>

    <link href="http://www.mobanwang.com/css/jsDemo.css" rel="stylesheet" type="text/css" media="all" />

</head>

<body>

    <div id="demoIntro"><span class="jsDown"><a href="http://js.mobanwang.com/showsoftdown.asp?softid=10401" target="_blank">点击下载该特效</a><a href="http://js.mobanwang.com/201106/10401.html">返回</a></span><span>jquery全景图片自动缓慢左右移动</span></div>

    <div id="demoPage">

        <iframe id="leftFrame" name="leftFrame" src="http://js.mobanwang.com/source/201106/201106177/index.html" frameborder="0" scrolling="auto" style="width:100%;height:100%;"></iframe>

    </div>

</body>

</html>


0 0