Results 1 to 2 of 2

Thread: Script: Pausing up-down message scroller

  1. #1
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Script: Pausing up-down message scroller

    http://www.epsiia.com/index.html

    First off, I want to thank Dynamic Drive for offering these awesome scripts, this is the best repository I have found. This is the first problem I have ever run into using your scripts... and of course it is user error.

    This question is a little bit different than the "I snagged multiple scripts and threw them on a page and now they don't work". I am using three scripts on this page and technically they all three load and begin to work. My problem is that the up-down scroller goes through message 0, message 1, message 1, message 1, message 1.... and there are 0-9 messages. So technically it scrolls fine and does function with all of the other scripts but it gets hung.

    I tried putting the onload in the body... didn't help.

    If I remove the fade scroll the up/down does work properly. So there has to be a little nerdle somewhere that is limiting the up/down to two messages.

    The live page listed above does not have the onload in the body, but I did try that locally and it did not solve the problem.

    http://www.dynamicdrive.com/dynamicindex2/crosstick.htm
    http://www.dynamicdrive.com/dynamici...fadescroll.htm

    Thank you so much in advance for any help you may be able to give me.
    Tracy O'Shaughnessy
    Designgrrl Studio

  2. #2
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    My Husband (Sun Programmer) found the error. In the fade scroll script (http://www.dynamicdrive.com/dynamic.../fadescroll.htm), Marcio Galli has an addition that has a bug in its code.

    for (i=0;i<obj.length;i++)

    should be

    for (var i=0;i<obj.length;i++)

    This fix, allows both scripts to work on the same page without problems.

    ------

    // colorfade() partially by Marcio Galli for Netscape Communications. ////////////
    // Modified by Dynamicdrive.com
    function linkcolorchange(step){
    var obj=document.getElementById("fscroller").getElementsByTagName("A");
    if (obj.length>0){
    for (var i=0;i<obj.length;i++)
    obj[i].style.color=getstepcolor(step);
    }
    }

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
  •