You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
535 B
Plaintext

$(document).ready(function () {
$(".side ul li").hover(function () {
$(this).find(".sidebox").stop().animate({ "width": "150px" }, 50).css({ "opacity": "1", "filter": "Alpha(opacity=100)", "background": "#ae1c1c" })
}, function () {
$(this).find(".sidebox").stop().animate({ "width": "54px" }, 50).css({ "opacity": "0.8", "filter": "Alpha(opacity=80)", "background": "#000" })
});
});
//回到顶部
function goTop() {
$('html,body').animate({ 'scrollTop': 0 }, 200); //滚回顶部的时间,越小滚的速度越快~
}