Pallone, absolutely!! But because of lot's of codes, I'll put a snippet of it.
<HEAD>
<%
set Conn = Server.CreateObject("ADODB.Connection")
Conn.ConnectionTimeout = 20
Conn.Mode = 8
Conn.Open "MyConnection"
strSql = "select title1, description1, title2, description2,title3, description3 from specialAnnouncements "
set Rec = Server.CreateObject("ADODB.RecordSet")
... and so on.. bla,blah
Rec.Open StrSql
if Not Rec.BOF then
Do While Not Rec.EOF
%>
<SCRIPT LANGUAGE="JavaScript">
</script>
<%
Rec.MoveNext
Loop
end if
Rec.Close()
Set Rec = Nothing
%>
</HEAD>
In my include
js file, all it does is display a scrolling text and here are my code snippet that gets it from my ASP object:
var displayText = new Array()
displayText[0]='<div align="Left"><b>[u]<center><%=Rec("title3")%></center></u></b><br><%=Rec("description3")%></div><br>'+
'<div align="Left"><b>[u]<center><%=Rec("title1")%></center></u></b><br><%=Rec("description1")%></div><br>'+
'<div align="Left"><b>[u]<center><%=Rec("title2")%></center></u></b><br><%=Rec("description2")%></div>'
There you have it and thanks for Mr. Prakash's help.