-4

On Facebook the document scrollbar takes control of the message container when a message is recieved.

Question: How can I re-create this functionality?

Jack
  • 15,614
  • 19
  • 67
  • 92
rec
  • 192
  • 2
  • 17

1 Answers1

3

From what I can decipher from your message, I believe this will answer your question: Changing Scrollbar Position

You should also take a look at jQuery's scrollTo (plugin) function: http://demos.flesler.com/jquery/scrollTo/

Community
  • 1
  • 1
Jack
  • 15,614
  • 19
  • 67
  • 92
  • Sorry for my bad presentation and also my bad English. I try to make it with the scrollTo function but i couldn't make the same effect. The only think that works is to replace the scrollbar with a jQuery made one like jScrollPane, with that you can control the relative position of the div without change the document position. Thanks ! – rec May 07 '12 at 23:25
  • Does the above answer your question? If so I will edit your question to make it more suitable. – Jack May 07 '12 at 23:26
  • not completely but helps anyway! Thanks!! (I press the 'Enter' to make a new line and it post the comment, sorry for that) – rec May 07 '12 at 23:31
  • I will give you a +1 because you're new and -6 on your question is a bit harsh! Just try to improve your question clarity next time ;) – Jack May 07 '12 at 23:32