• 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>

  • 相关阅读:
    Go语言指针
    程序员 需要掌握得600个英语单词
    Go语言管道
    Go语言容器
    Go语言切片
    Go语言类型转换
    Go语言数组
    LR静态存储/动态存储/指针变量脚本说明
    MQ报错2009/2085解决方法
    Windows性能监控监视器(perfmon使用)
  • 原文地址:https://www.cnblogs.com/celery94/p/1282891.html
Copyright © 2020-2023  润新知