%
' The following is the code for the scrolling news ticker.
Dim sTxt, iSpeed, iTop, iLeft, iWidth, iHeight, sHtml1, sHtml2, sHtml4, strSQL,sMarquee
StrCnn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("db/pavillion.mdb")
Set OBJdbConnection = Server.CreateObject ("ADODB.Connection")
OBJdbConnection.Open StrCnn
Set RsGuestList = Server.CreateObject ("ADODB.Recordset")
RsGuestList.ActiveConnection = OBJdbConnection
RsGuestList.CursorType = 1
RsGuestList.LockType = 1
RsGuestList.Open "select * from news ORDER BY NewsDate DESC"
sHtml1 = ""
sHtml3 = " "
sTxt = ""
if not RsGuestList.eof then
RsGuestList.movefirst
do while not RsGuestList.eof
sHtmlDate = MonthName(Month(RsGuestList("NewsDate")),1)&" "&Day(RsGuestList("NewsDate"))&", "&Year(RsGuestList("NewsDate"))
sTxt = sTxt & sHtml1 & _
RsGuestList("NewsID") & sHtml2 & sHtmlDate& " "&RsGuestList("NewsTitle")& " " &sHtml3
RsGuestList.movenext
loop
end if
RsGuestList.close
%>
:: Look Pavillion International - News ::
Copyright © 2011 Look Pavillion. All rights reserved. This website is designed by: elzoghby.com