Okay, I have taken a look of your expanded post.
[1] Make sure you have defined some Repeat1__numRow be some positive integer. I suppose it is so somewhere above the script shown, no zero to begin with.
[2] Then I suppose the Recordset1 is not pointing to eof!
[3] As js array is zero-based, (no+1) should better be replaced by (no) so that you won't leave index 0 hanging for no purpose.
[4] You can test out the functionality by leaving out all the unrelated. Only keep the lines to establish the recordset.
[tt]
<html>
<head>
[blue]<%
Repeat1__numRows=100 'arbitrary
[/blue][red]
'here establish the RecordSet1
'etc etc
'strip down your existing lines and retain only the essential for that purpose of setting up RecordSet1[/red]
[blue]%>
<!-- this is basically the part you've shown -->[/blue]
<script type="text/javascript">
/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at
for full source code
***********************************************/
var delay = 2000; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=40; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)
var fcontent=new Array();
begintag='<div style="font: normal 14px Arial; padding: 5px;">'; //set opening tag, such as font declarations
<%
Dim no
no=0
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
Response.Write "fcontent[" & (no) & "]=""" & Recordset1("Company").value & " - " & Recordset1("City").value & "," & Recordset1("State").value & """"
no = no + 1
Repeat1__index=Repeat1__index+1 'don't know what it is
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
closetag='</div>';
[blue]
window.onload=function() {
var odiv=document.getElementById("divid");
odiv.innerHTML=fcontent.join("<br />");
}
</script>
</head>
<body>
<div id="divid"></div.
</body>
<html>
[/blue][/tt]
[5] Load the above somename.asp. What do you get?