Dynamically moving div, like Yelp's moving map

Posted by jeanh on Stack Overflow See other posts from Stack Overflow or by jeanh
Published on 2010-05-17T21:44:03Z Indexed on 2010/05/17 21:50 UTC
Read the original article Hit count: 289

Filed under:
|

I am trying to implement something very similar to Yelp's moving map. See:

http://www.yelp.com/search?find_desc=restaurants&ns=1&find_loc=mountain+view%2C+ca

Basically it starts off somewhere in the middle of the page, but if you scroll down far enough that you wouldn't be able to see it, it moves down as well. What is the best way to do this in javascript? My app is in GWT, but I think I will have to use native js to achieve this effect.

Thanks, Jean

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom