Pausing up-down Scroller using ASP and Database
Hi all,
I am trying to make this script dynamic using asp. I would like the data from my mysql database to be displayed using the script from your website.
http://www.dynamicdrive.com/dynamicindex2/crosstick.htm
At the moment my code look like this. But when I view the page on the server, it simply doesn't show up at all.
Code:
<script type="text/javascript">
//configure the below variable to change the contents of the scroller
var messages=new Array()
<%
dim ctr
ctr=0
While ((Repeat1__numRows <> 0) AND (NOT News.EOF))
%>
pausecontent[<%=ctr%>]='<font face="Arial"><a href="/news.asp?NewsID="& News("NewsID")> <%=(News.Fields.Item("Subject").Value)%></a></font>'
pausecontent[1]='<a href="http://www.codingforums.com">Coding Forums</a><br />Web coding and development forums.'
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
ctr = ctr + 1
News.MoveNext()
Wend
%>
</script>
I would really appreciate any help you can give me.
Regards,
Adam