Questo è il codice:

<script LANGUAGE="JavaScript">
msg = "<%
While ((Repeat1__numRows <> 0) AND (NOT oly_anni.EOF))
%><%=(oly_anni.Fields.Item("ANNO_OLY").Value)%> | <%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
oly_anni.MoveNext()
Wend
%>";
msg += "";
pos = 0;
function ScrollMessage() {
var newtext = msg.substring(pos, msg.length) + msg.substring(0, pos);
var div = document.getElementById("scroll");
div.firstChild.nodeValue = newtext;
pos++;
if (pos > msg.length) pos = 0;
window.setTimeout("ScrollMessage()",120);
}
</script>

scusa se mi devi ripetere in ciclo, per forza devo mettere

<%
While ((Repeat1__numRows <> 0) AND (NOT oly_anni.EOF))
%>