Script to display div according to position

Having some issue with this script

jQuery(document).ready(function($){
	//alert($(".hentry").html());

	$('#followMe').click(function(){
		$('html, body').animate({ scrollTop: 0 }, 'slow');
	});
	
	var fp = $('#followMe');
	var p = $('#followMe').position();
	$('#followMe').offset(function(){
		if{
			$(this).position({ top:250 });
			$(this).css("display:","block");
		}else{
			$(this).css("display:","none");
		};
	});
	

});

this was working until i added the bit to affect the “followMe” div by position.
i want it to not display until the user has scrolled down about 250px or so.
Can i get some help correcting it?
thx
D

What console errors does the browser give?

ha, sorry will have to go back an re-create it later as have been tweaking code while waiting.
figured it was common enough that someone would know how to do it.
will post again later
D

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.