javascript - Making a div always visible while scrolling through another specific div -


I have created an image upload widget in my webpad, I want this widget to be visible while separating a specific partition For the vast form (in this division I need to enter some image URL provided by my widget), here is the scenario: Div Disposal

To achieve this I have done the following:

  $ (). Ready (function () {var $ scrollingDiv = $ ("# scrollingDiv"); $ (window) .scroll (function () {$ scrollingDiv. Stop () .animate ({"marginTop": ($ (window) .scrollTop () + 30) + "px"}, "slow");});});  

Assuming that scrollingDiv is the ID of my widget ( DIV3 ).

The problem I am facing is that when I scroll to DIV1 , then scrolling is going to push down, so I Due to this, you can not see the end of your form: div spaces

My question is Edit: Click on analogous case

When I DIV3 my DIV2

PS: This is my first question on JQuery ... please do not close the post and And give me the chance to correct it if necessary ...


Comments

Popular posts from this blog

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

c# - Process.Kill() returns access denied -

c# - Using the generic type 'System.Collections.Generic.List<T>' requires 1 type arguments -