/********************************************************************************* Ç÷¯±×ÀÎ : jquery.DB_slideStepMove.js Á¦ÀÛÀÚ : Copyright ¨Ï 2012 by µðÀÚÀÎºí·¢(http://designblack.com) ¶óÀ̼¾½º : µµ¸ÞÀζóÀ̼¾½º ±âŸ : ±â¼ú¹®¼­, »ç¿ë¹ý ¹× ¶óÀ̼¾½º´Â ȨÆäÀÌÁö¸¦ Âü°íÇϼ¼¿ä ¹®¼­Á¤º¸´Â ¼öÁ¤Çϰųª »èÁ¦ ÇÒ ¼ö ¾ø½À´Ï´Ù *********************************************************************************/ ;(function($){ $.fn.DB_slideStepMove=function(options){ var opt={ motionDirection:'x', //¸ð¼Ç¹æÇâ('x','y','none') moveDistance:50, //À̵¿°Å¸® moveSpeed:300, //À̵¿¼Óµµ autoRollingTime:5000, //ÀÚµ¿·Ñ¸µ½Ã°£(¹Ð¸®ÃÊ) end:null } $.extend(opt,options); return this.each(function(){ var $this=$(this); var $moveSet=$this.find('.DB_moveSet'); var $imgList=$moveSet.find('>li'); var $nextBtn=$this.find('.DB_nextBtn'); var $prevBtn=$this.find('.DB_prevBtn'); var $pageSet=$this.find('.DB_pageSet'); var pageSetIs=$pageSet.length; if(pageSetIs){ var $currentPage=$pageSet.find('.DB_currentPage'); var $totalPage=$pageSet.find('.DB_totalPage'); var currentPage=0; } var objNum=$imgList.length; var moveCount=0; var dir='next'; var imgArr=[]; var reClick=1; var timerId; init(); function init(){ setInit(); setMouseEvent(); setTimerId(); setPage(); } function setInit(){ for(var i=0;i