productscategory.js

来自「一款C2C的网店程序 我也是在网上下载的」· JavaScript 代码 · 共 32 行

JS
32
字号
var serialScrollNbImagesDisplayed;var serialScrollNbImages;var serialScrollActualImagesIndex;function serialScrollFixLock(event, targeted, scrolled, items, position){	$('#productscategory_scroll_left').css('cursor', position == 0 ? 'default' : 'pointer').fadeTo(500, position == 0 ? 0.2 : 1);	$('#productscategory_scroll_right').css('cursor', position + serialScrollNbImagesDisplayed == serialScrollNbImages ? 'default' : 'pointer').fadeTo(500, position + serialScrollNbImagesDisplayed == serialScrollNbImages ? 0.2 : 1);	return true;}$(document).ready(function(){//init the serialScroll for thumbs	serialScrollNbImages = $('#productscategory_list li').length;	serialScrollNbImagesDisplayed = 5;	serialScrollActualImagesIndex = 0;	$('#productscategory_list').serialScroll({		items:'li',		prev:'a#productscategory_scroll_left',		next:'a#productscategory_scroll_right',		axis:'x',		offset:0,		stop:true,		onBefore:serialScrollFixLock,		duration:300,		step: 1,		lock: false,		force:false,		cycle:false	});	$('#productscategory_list').trigger( 'goto', [middle-3] );});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?