var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /* bxCarousel v1.0 Plugin developed by: Steven Wanderski 同个页面可以多次使用,但是要用不同的id move:每次滚动移动图片的数量,默认为4。 display_num:展示图片的数量,默认为4。 speed:图片滚动速度,默认为500毫秒。 margin:图片间的间距,默认为0。 auto:是否自动滚动,默认为false。 auto_interval:当设为自动滚动时,每次滚动的时间间隔(毫秒),默认为2000毫秒即2秒。 auto_dir:自动滚动的方向,默认为next,你可以试下prev。 next_image:向右滚方向按钮图片,可以用CSS设置。 prev_image:向左滚方向按钮图片,可以用CSS设置。 auto_hover:滚动时,鼠标滑上图片时是否停止滚动,默认为false。 controls:是否显示左右滚动按钮图片,默认为true。 */ (function ($) { $.fn.bxCarousel = function (options) { var defaults = { move: 4, display_num: 4, speed: 500, margin: 0, auto: false, auto_interval: 2000, auto_dir: 'next', auto_hover: false, next_text: 'next', next_image: '', prev_text: 'prev', prev_image: '', controls: true }; var options = $.extend(defaults, options); return this.each(function () { var $this = $(this); var li = $this.find('li'); var first = 0; var fe = 0; var last = options.display_num - 1; var le = options.display_num - 1; var is_working = false; var j = ''; var clicked = false; li.css({ 'float': 'left', 'listStyle': 'none', 'marginRight': options.margin }); var ow = li.outerWidth(true); wrap_width = (ow * options.display_num) - options.margin; var seg = ow * options.move; $this.wrap('
').width(999999); if (options.controls) { if (options.next_image != '' || options.prev_image != '') { var controls = ''; } else { var controls = ''; } } $this.parent('.bx_container').wrap('
').css({ 'position': 'relative', 'width': wrap_width, 'overflow': 'hidden' }).before(controls); var w = li.slice(0, options.display_num).clone(); var last_appended = (options.display_num + options.move) - 1; $this.empty().append(w); get_p(); get_a(); $this.css({ 'position': 'relative', 'left': -(seg) }); $this.parent().siblings('.next').click(function () { slide_next(); clearInterval(j); clicked = true; return false; }); $this.parent().siblings('.prev').click(function () { slide_prev(); clearInterval(j); clicked = true; return false; }); if (options.auto) { start_slide(); if (options.auto_hover && clicked != true) { $this.find('li').live('mouseenter', function () { if (!clicked) { clearInterval(j); } }); $this.find('li').live('mouseleave', function () { if (!clicked) { start_slide(); } }); } } function start_slide() { if (options.auto_dir == 'next') { j = setInterval(function () { slide_next() }, options.auto_interval); } else { j = setInterval(function () { slide_prev() }, options.auto_interval); } } function slide_next() { if (!is_working) { is_working = true; set_pos('next'); $this.animate({ left: '-=' + seg }, options.speed, function () { $this.find('li').slice(0, options.move).remove(); $this.css('left', -(seg)); get_a(); is_working = false; }); } } function slide_prev() { if (!is_working) { is_working = true; set_pos('prev'); $this.animate({ left: '+=' + seg }, options.speed, function () { $this.find('li').slice(-options.move).remove(); $this.css('left', -(seg)); get_p(); is_working = false; }); } } function get_a() { var str = new Array(); var lix = li.clone(); le = last; for (i = 0; i < options.move; i++) { le++ if (lix[le] != undefined) { str[i] = $(lix[le]); } else { le = 0; str[i] = $(lix[le]); } } $.each(str, function (index) { $this.append(str[index][0]); }); } function get_p() { var str = new Array(); var lix = li.clone(); fe = first; for (i = 0; i < options.move; i++) { fe-- if (lix[fe] != undefined) { str[i] = $(lix[fe]); } else { fe = li.length - 1; str[i] = $(lix[fe]); } } $.each(str, function (index) { $this.prepend(str[index][0]); }); } function set_pos(dir) { if (dir == 'next') { first += options.move; if (first >= li.length) { first = first % li.length; } last += options.move; if (last >= li.length) { last = last % li.length; } } else if (dir == 'prev') { first -= options.move; if (first < 0) { first = li.length + first; } last -= options.move; if (last < 0) { last = li.length + last; } } } }); } })(jQuery); } /* FILE ARCHIVED ON 18:05:51 Nov 29, 2018 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 11:03:27 Jul 29, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.488 exclusion.robots: 0.025 exclusion.robots.policy: 0.015 esindex: 0.009 cdx.remote: 4356.014 LoadShardBlock: 351.572 (3) PetaboxLoader3.datanode: 307.302 (5) load_resource: 919.678 (2) PetaboxLoader3.resolve: 388.173 (2) */