zoukankan      html  css  js  c++  java
  • Jquery 滚动图片

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ScrollJquery._Default" %>

    <!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 runat="server">
        <title>Jquery Scroll</title>

        <script type='text/javascript' src='jquery-1.2.6.min.js'></script>

        <script type="text/javascript" src="jquery.scrollTo-min.js"></script>

        <script type="text/javascript" src="jquery.serialScroll-min.js"></script>

        <script type="text/javascript">
            jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
                return -c * ((t=t/d-1)*t*t*t - 1) + b;
            };
            jQuery(function(){
                    $('#slideshow').serialScroll({
                        items:'li',
                        prev:'#screen2 a.prev',
                        next:'#screen2 a.next',
                        start:0, //as we are centering it, start at the 2nd
                        duration:2000,
                        force:true,
                        interval:1,
                        cycle:true, //don't pull back once you reach the end
                        jump:true,
                        interval:5000
                    });
                }
            );
        </script>

        <style type="text/css">
            #screen2
            {
                position: relative;
                300px;
                margin: 20px;
            }
            #screen2 #buttons
            {
                border: 1px solid #777;
                margin-bottom: 5px;
                300px;
            }
            #screen2 #buttons a
            {
                margin: 10px 10px;
                color: #69C;
            }
            #screen2 .prev
            {
                float: left;
            }
            #screen2 .next
            {
                float: right;
            }
            #slideshow
            {
                overflow: hidden;
                300px;
                border: 1px solid #777;
            }
            #slideshow ul
            {
                900px;
                padding-left: 0px;
                margin: 0px;
            }
            #slideshow li
            {
                float: left;
                cursor: pointer;
            }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <div id="screen2">
            <div id="buttons">
                <a class="prev" href="#">Previous</a> <a class="next" href="#">Next</a>
            </div>
            <div id="slideshow">
                <ul>
                    <li>
                        <img width="300" height="500" src="abstract_colors_Galeor.jpg" />
                    </li>
                    <li>
                        <img width="300" height="500" src="Palawan Island Philippines.jpg" />
                    </li>
                    <li>
                        <img width="300" height="500" src="Peaceful Getaway Maldives.jpg" />
                    </li>
                </ul>
            </div>
        </div>
        </form>
    </body>
    </html>

  • 相关阅读:
    Android系统移植与驱动开发案例 第一章
    收缩SQL数据库日志文件
    SQL Server Configuration Manager出错
    sql server 2008 评估期已过期解决办法
    服务器管理器打开角色、功能出错
    常用网络命令(windows)
    linux 常用命令
    获取指定月的最后一天
    浅谈JVM原理
    Maven+SSM+oracle框架实现简单的增删改查
  • 原文地址:https://www.cnblogs.com/celery94/p/1282891.html
Copyright © 2011-2022 走看看