I want to move a div from left to right, when page is scroll down or up. When page scroll down it should move right and when page is scroll up it should move left.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
See here a little example, a red box will scroll horizontally according to the percentage of the page you scrolled vertically:
Working demo: http://jsfiddle.net/PvVdq/