<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<style type="text/css">
body{padding:0px;margin:0px;}
#roll_top,#fall,#ct{position:relative;cursor:pointer;height:40px;width:15px;}
#roll{display:block;width:15px;margin-right:-508px;position:fixed;right:50%;top:50%;_margin-right:-507px;_position:absolute;_margin-top:300px;_top:expression(eval(document.documentElement.scrollTop));}
</style>
<!--[if IE]>
<style type="text/css">
/* 修正IE6振动bug */
html,body{background-image:url(about:blank);background-attachment:fixed;}
</style>
<![endif]-->
<script type="text/javascript" src="http://www.abram.intra.vcotton.com/js/jquery.js"></script>
<script type="text/javascript">
$(function(){
$('#roll_top').click(function(){$('html,body').animate({scrollTop: '0px'}, 800);});
$('#ct').click(function(){$('html,body').animate({scrollTop:$('.ct').offset().top}, 800);});
$('#fall').click(function(){$('html,body').animate({scrollTop:$('.footer,.footer_a').offset().top}, 800);});
});
</script>
</head>
<body>
<div class="head">这里是页面顶部</div>
<div id="roll">
<div title="回到顶部" id="roll_top">回到顶部</div>
<br/> <br/> <br/> <br/>
<div title="转到底部" id="fall">转到底部</div>
</div>
<div id="content" style="height:2000px;"></div>
<div class="footer">这里是页面底部</div>
</body>
</html>