Results 1 to 3 of 3

Thread: Need random start on <IFRAME> Ticker

  1. #1
    Join Date
    May 2009
    Location
    Florida, United States
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Need random start on <IFRAME> Ticker

    1) Script Title: <IFRAME> Ticker

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ame-ticker.htm

    3) Describe problem: is it possible to use this script and have it start randomly instead of Position #0? I do not want to use the DHTML Ticker Script (http://www.dynamicdrive.com/dynamici...eneraltick.htm) for it is too cumbersome and is not easily formatted into my web page. I know about the random start for this script posted in the forums here, but it still does not meet my needs.

    This particular script <IFRAME> Ticker looks and works great, I just need it to start randomly for I have over 100 tickers to display.

    Thanks!
    Last edited by blue8019; 11-08-2009 at 10:50 PM. Reason: added # of tickers to display.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Replace (on exfile.htm):

    Code:
    window.onload=rotate_content
    with:

    Code:
    window.onload=function(){
    get_total();
    curindex = Math.floor(Math.random() * totalcontent);
    rotate_content();
    };
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    blue8019 (11-09-2009)

  4. #3
    Join Date
    May 2009
    Location
    Florida, United States
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you John, this is perfect!!

    You have made my life much easier today..........

    Have a great day!

    Randy

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •