DIV TIMER IN JQUERY??

by newbim
2 replies
Hi,

I'm just learning about jQuery, and am putting together some templates for a WSO.

I'm a little stuck on how to make div's scroll down at a specific point. I'm assuming because of the animation, you can achieve this using jQuery, but I can't find anything that reveals how to do this online.

Does anyone have any ideas about this? This is what I need:

I need to have a 'signup' div scroll down (that was previously invisible) at a specific time after loading.

I'm sure you can do this using the JS setTimeout command, but need a little pointing in the right direction.

Any advice will be greatly appreciated.

Thank you in advance,

Newbim.
#div #jquery #timer
  • Profile picture of the author ninal
    You could use

    Code:
    setTimeout(function() {
        $('#divid').show('fast');
    }, 1000);
    Then just change 1000 to any number you want (note: that's in milliseconds).
    also replace .show with the effect you desire (fadein,fadeout, etc.)

    haven't tested this though but hopefully that points you the right direction.
    Signature
    Hello
    {{ DiscussionBoard.errors[1931998].message }}
    • Profile picture of the author newbim
      Thanks for that ninal, I'm going to have a look into it tonight. I'm pretty new to Js and jQuery, so I'll get it sorted tonight - I hate it when it feels like codes get the better of me, haha. Thanks again, take care,

      Newbim.
      Signature
      If what I said helps, let me know, throw me a 'thanks'.
      {{ DiscussionBoard.errors[1937033].message }}

Trending Topics