Si, claro.
Código:
...
/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
<%
i = 0
while not rs.eof
%>
photos[<% = i %>]="images/<% = rs("foto") %>"
<%
i = i + 1
rs.movenext
wend
%>
function backward(){
...
Allí estoy asuminedo que tu recordset se llama
rs, pero cambialo al nombre que sea necesario.
Por cierto, me pude haber confundido al tipear el código, así que te pido que revises el HTML generado para corroborar que todo sea correcto.
saloudos