//jQueryx 实现slideLeft 和slideRight方法
$.fn.slideLeftHide = function(speed, callback) {
this.animate({
"hide",
paddingLeft: "hide",
paddingRight: "hide",
marginLeft: "hide",
marginRight: "hide"
}, speed, callback);
};
$.fn.slideRightHide = function(speed, callback) {
this.animate({
"hide",
paddingRight: "hide",
paddingLeft: "hide",
marginRight: "hide",
marginLeft: "hide"
}, speed, callback);
};
$.fn.slideLeftShow = function(speed, callback) {
this.animate({
"show",
paddingLeft: "show",
paddingRight: "show",
marginLeft: "show",
marginRight: "show"
}, speed, callback);
};
//右滑动显示
$.fn.slideRightShow = function(speed, callback) {
this.animate({
"show",
paddingRight: "show",
paddingLeft: "show",
marginRight: "show",
marginLeft: "show"
}, speed, callback);
}