jQuery侧边悬浮窗口折叠显示隐藏文字列表

jQuery侧边悬浮窗口折叠显示隐藏文字列表868
相关js
$(function(){
	
	$('.main').css('left','-262px');
	
	var expanded = true;
	
	$('.bar').click(function(){
		if(expanded){
			$('.main').animate({left:'0'},500);
			$('.bar').css('background-position','-25px 0px');
		}else{
			$('.main').animate({left:'-262px'},500);
			$('.bar').css('background-position','-0px 0px');
		}
		expanded = !expanded;
	});

});

也许你还喜欢