我想要一个使用棘轮 slider.js 和 phonegap android 的滑块示例示例

i want a sample for slider example using ratchet slider.js and phonegap android

我正在使用 slider.js。我想像棘轮 site.I 上可用的示例一样在另一张图像之间滑动一张图片必须使用 android.Plz 中的棘轮和 phonegap 来帮助我..

提前致谢。

这对我来说非常有效,可在网站上找到。

这是你想要的吗?

如果这是您所需要的,那么只需将 ratchet.jsratchet.css 复制到您的 www 文件夹中,然后 link 将其相应地复制到您的 html.您可以从下面的示例中获得提示。不要忘记在您的项目中添加一些图像。

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Ratchet template page</title>

        <!-- Sets initial viewport load and disables zooming  -->
        <meta name="viewport" content="initial-scale=1, maximum-scale=1">

        <!-- Makes your prototype chrome-less once bookmarked to your phone's home screen -->
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">

        <!-- Include the compiled Ratchet CSS -->
        <link href="../css/ratchet.css" rel="stylesheet">

        <!-- Include the compiled Ratchet JS -->
        <script src="../js/ratchet.js"></script>
    </head>
    <body>

        <!-- Make sure all your bars are the first things in your <body> -->
        <header class="bar bar-nav">
            <h1 class="title">Ads</h1>
        </header>

        <!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
        <div class="content">
            <div class="slider" id="mySlider">
                <div class="slide-group">
                    <div class="slide">
                        <img src="../img/Black-Android-Logo-Wallpaper.png">
                    </div>
                    <div class="slide">
                        <img src="../img/Popeye-advertisement-artwork-inspirational--1545575-320x480.jpg">
                    </div>
                    <div class="slide">
                        <img src="../img/Black-Android-Logo-Wallpaper.png">
                    </div>
                    <div class="slide">
                        <img src="../img/Popeye-advertisement-artwork-inspirational--1545575-320x480.jpg">
                    </div>
                    <div class="slide">
                        <img src="../img/Black-Android-Logo-Wallpaper.png">
                    </div>
                    <div class="slide">
                        <img src="../img/Popeye-advertisement-artwork-inspirational--1545575-320x480.jpg">
                    </div>
                </div>
            </div>

            <!-- Icons in standard bar fixed to the bottom of the screen -->
            <div class="bar bar-standard bar-footer">
                <a href="dashboard.html" class="icon pull-right"><span class="badge badge-primary">Skip</span></a>
            </div>
        </div>
    </body>
</html>