聖誕快樂(1):<br>nav設定

三、nav區:輪播設定

//定時輪播
var speed=3000;   
var timer=window.setTimeout(sliderTime,speed);

//滑鼠移入時,停止循環照片
$('nav').hover(
function(){ window.clearTimeout(timer);}
,function(){timer=window.setTimeout(sliderTime,speed);}
);

//輪播Fn
function sliderTime(){
var clickIndex = $('.nav li.on').index();
	clickIndex = (clickIndex+1) % $li.length;
	$li.eq(clickIndex).click();
	timer=window.setTimeout(sliderTime,speed);
}