Hide div when in top of page with jquery -
When I scroll the page to the top and when it does not come with jquery, I want to hide a div I am trying. / P>
Any way to do this?
EDIT: By concealing and showing I mean it gets erased and get out.
Scroll event and use
scrollTop () $ (window). on ("scroll", function {var scrollpace = $ (window) .scrollTop (); if (scrollpost & lt; = 0) {$ (".dvnidsehiding") .FadeOut ();} and {$ (" Edit. Edit: The scrollTop query has been updated, as if jQuery provides a compatibility layer if Element is window .
वेबमास्टर्स के लिए html कोड
ReplyDeleteDiv टैग स्थिति सापेक्ष नमूना