$(function(){ $(window).scroll(function(){ if($(window).scrollTop()>50){ $('#top').addClass('gh0'); }else{ $('#top').removeClass('gh0'); } $(window).scrollTop()>0?$('#gotopbtn').show():$('#gotopbtn').hide(); if($.browser.msie){ if($(window).scrollTop()<$('body').height()-$('#gotopbtn').height()){ $('#gotopbtn').css({'top':$(window).scrollTop()+$(window).height()-$('#gotopbtn').height()-50}); } $('#code').css({'top':$(window).scrollTop()+150}); $('#showqq').css({'top':$(window).scrollTop()+150}); } }); $('.showqq').hover( function(){$(this).animate({right:"-25px"},100);return false;}, function(){$(this).animate({right:'-'+($('.showqq').width())+'px'},100);return false;} ); })