Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    i'm currently using a script associated w/ jquery at this link:

    http://docs.jquery.com/Tutorials:Scr...eadline_Reader

    it works great, just need a way to pause or not begin scrolling until about 10 seconds after visiting the site... is there a way to do that w/o affecting the pause time in between each news segment?

  2.  

  3. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Put the reader initialization in a function, say initNews();. Then, in the jQuery load system, instead of putting the aforementioned code, put:

    Code:
    setTimeout(initNews, 10000);
    This will schedule initNews to run 10 seconds later, thus starting the news display code.

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    But put it in quotes:
    Code:
    window.setTimeout("initNews();", 10000);

  5. #4
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Actually, if you're just executing a single function, you can pass the function object itself and it will be invoked. If you want to execute a set of code or pass parameters to the function, you need to pass in a string, but passing in a function object works fine, as well.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:04 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com