a.topic-link {
margin: 10px auto;
display: block;
width: 600px;
}
.topic-box {
width: 600px;
height: 75px;
background: url(/tag/&) {
alert('抱歉,您的浏览器不支持此操作,请使用"Ctrl + D"键保存')
}
var baseUrl = 'https://datas.dajuyang.com/live/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);
}
;
});