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:
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:
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
Post a Comment