美国白宫建筑网站模板美国白宫建筑网站模板是一款好看的网络世界公司网站模板。建筑美国HTML欧美
<script src="js/jquery-ui.min.js"></script>
<script src="js/hammer.min.js"></script>
<script src="js/responsiveCarousel.js"></script>
<script>
$(function () {
$('#textslider')
.responsiveCarousel({
unitWidth: 'compute',
target: '#textslider .slider-target',
unitElement: '#textslider .slider-target > li',
mask: '#textslider .slider-mask',
arrowLeft: '#textslider .arrow-left',
arrowRight: '#textslider .arrow-right',
dragEvents: Modernizr.touch,
responsiveUnitSize:function () {
return 1;
},
step:-1,
onShift:function (i) {
var $current = $('#selector li a[rel=frame_' + i + ']');
$('#selector li a').removeClass('current');
$current.addClass('current');
}
});
$('#toggle-slide-show').on('click', function (ev) {
ev.preventDefault();
$('#textslider').responsiveCarousel('toggleSlideShow');
});
$('#selector a').on('click', function (ev) {
ev.preventDefault();
var i = /\d/.exec($(this).attr('rel'));
$('#textslider').responsiveCarousel('goToSlide', i);
});
});
$(window).on('load',function(){
$('.examples').responsiveCarousel('redraw');
});
</script>
资源均来自第三方,谨慎下载,前往第三方网站下载