floating a div with jquery/offset - ignores href hashtag
- by Kevin Crawley
<script type="text/javascript">
$(document).ready(function () {
var top = $('#rt_outer').offset().top - parseFloat($('#rt_outer').css('marginTop').replace(/auto/, 0));
$(window).scroll(function (event) {
// what the y position of the scroll is
var y = $(this).scrollTop();
// whether that's below the form
if (y >=…