Hola sqa212
Realmente no necesitas usar javascript para aplicar y mostrar el atributo title a un span. Prueba a ver si algo así te sirve
Código:
<%
set rslist=db.execute("SELECT * FROM productos")
do while not rslist.eof
idproducto=rslist("idproducto")
tama=rslist("tama")
if tama=0 then
set rsDesAlterna=db.execute("SELECT * FROM Alternativos where idproducto= " & idproducto)
if not rsDesAlterna.eof and not rsDesAlterna.bof then
alterita = " title=""" & rsDesAlterna("descripcion") & """"
end if
Set rsDesAlterna=Nothing
%>
<span<%=alterita%>>Descripcion </SPAN>
<br>
<% End IF %>
<%rslist.MoveNext
Loop
set rslist = nothing
db.close
set db = nothing
%>