View Full Version : Script: Pausing up-down message scroller

12-03-2004, 01:46 PM

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.


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

12-10-2004, 02:07 AM
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++)