js代码
function b(){
h = $(window).height();
t = $(document).scrollTop();
if(t > h){
$('#gotop').show();
}else{
$('#gotop').hide();
}
}
$(document).ready(function(e) {
b();
$('#gotop').click(function(){
$(document).scrollTop(0);
});
$('#code').hover(function(){
$(this).attr('id','code_hover');
$('#code_img').show();
$('#code_img').addClass('a-fadeinL');
},function(){
$(this).attr('id','code');
$('#code_img').hide();
})
});
$(window).scroll(function(e){
b();
});