热门标签
热门录像
var baseUrl = 'http://datas.adminn.cn/zhibo/datas';
jQuery.axpost = function(url, data, successfn, errorfn) {
data = (data == null || data == "" || typeof(data) == "undefined") ? {
"date": new Date().getTime()
} : data;
$.ajax({
dataType: "json",
type: "post",
data: data,
url: url,
success: function(d) {
successfn(d);
},
error: function(e) {
errorfn(e);
}
});
};
$("#gotoTop").click(function () {
$('html,body').animate({scrollTop: 0}, 300);
});
var min_height = 500;
$(window).scroll(function () {
var s = $(window).scrollTop();
if (s > min_height) {
$("#gotoTop").fadeIn(200);
} else {
$("#gotoTop").fadeOut(200);
}
;
});