视频相册展示,点击显示播放视频
XML/HTML Code
- <div class="row clearfix">
- <div class="col span_6 fwImage">
- <div id="video-gallery" class="royalSlider videoGallery rsDefault">
- <a class="rsImg" data-rsw="843" data-rsh="473" data-rsVideo="http://www.youtube.com/watch?v=HFbHRWwyihE" href="http://dimsemenov.comhttp://dimsemenov.com/plugins/royal-slider/img/admin-video.png">
- <div class="rsTmb">
- <h5>New RoyalSlider</h5>
- <span>by Dmitry Semenov</span>
- </div>
- </a>
- <a class="rsImg" data-rsVideo="https://vimeo.com/45830194" href="http://b.vimeocdn.com/ts/319/715/319715493_640.jpg">
- <div class="rsTmb">
- <h5>Stanley Piano</h5>
- <span>by Digital Kitchen</span>
- </div>
- </a>
- <div class="rsContent">
- <a class="rsImg" data-rsVideo="https://vimeo.com/31240369" href="http://b.vimeocdn.com/ts/210/393/210393954_640.jpg">
- <div class="rsTmb">
- <h5>I Believe I Can Fly</h5>
- <span>by sebastien montaz-rosset</span>
- </div>
- </a>
- <h3 class="rsABlock sampleBlock">Animated block, to show you that you can put anything you want inside each slide.</h3>
- </div>
- <a class="rsImg" data-rsVideo="https://vimeo.com/44878206" href="http://b.vimeocdn.com/ts/311/891/311891198_640.jpg">
- <div class="rsTmb">
- <h5>Dubstep Dispute</h5>
- <span>by Fluxel Media</span>
- </div>
- </a><a class="rsImg" data-rsVideo="https://vimeo.com/41132461" href="http://b.vimeocdn.com/ts/284/709/284709146_640.jpg">
- <div class="rsTmb">
- <h5>Barcode Band</h5>
- <span>by Kang woon Jin</span>
- </div>
- </a>
- <a class="rsImg" data-rsVideo="hhttps://vimeo.com/44388232" href="http://b.vimeocdn.com/ts/308/375/308375094_640.jpg">
- <div class="rsTmb">
- <h5>Samm Hodges Reel</h5>
- <span>by Animal</span>
- </div>
- </a>
- <a class="rsImg" data-rsVideo="http://www.youtube.com/watch?v=VDspPKDMBMo" href="http://dimsemenov.com/plugins/royal-slider/img/video/02.jpg">
- <div class="rsTmb">
- <h5>The Foundry Showreel</h5>
- <span>by The Foundry</span>
- </div>
- </a>
- </div>
- </div>
- </div>
- </div>
- <div class="wrapper page">
- <script>
- jQuery(document).ready(function($) {
- $('#video-gallery').royalSlider({
- arrowsNav: false,
- fadeinLoadedSlide: true,
- controlNavigationSpacing: 0,
- controlNavigation: 'thumbnails',
- thumbs: {
- autoCenter: false,
- fitInViewport: true,
- orientation: 'vertical',
- spacing: 0,
- paddingBottom: 0
- },
- keyboardNavEnabled: true,
- imageScaleMode: 'fill',
- imageAlignCenter:true,
- slidesSpacing: 0,
- loop: false,
- loopRewind: true,
- numImagesToPreload: 3,
- video: {
- autoHideArrows:true,
- autoHideControlNav:false,
- autoHideBlocks: true
- },
- autoScaleSlider: true,
- autoScaleSliderWidth: 960,
- autoScaleSliderHeight: 450,
- imgWidth: 640,
- imgHeight: 360
- });
- });
- </script>
- </div>
原文地址:http://www.freejs.net/article_yingyueshipin_454.html