PDA

View Full Version : fading scroller support for asp database driven content



aonefun
09-23-2008, 10:39 AM
1) Script Title: Fading Scroller

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/fadescroll.htm

3) Describe problem: With the assistance of dreamweaver to generate the asp code and another forum participant to prepare the asp code for javascript rendering, I've come up with the following code to display dynamic content as the fading scroller text as follows. However, all code enclosed in the asp tags render as blank in the html and therefore the text shows up as undefined on the webpage. What am I doing wrong?


begintag='<div style="font: normal 14px Arial; padding: 5px;">'; //set opening tag, such as font declarations

<%
Dim no
no=0
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
Response.Write "fcontent[" & (no+1) & "]=""" & Recordset1("ShipToCompany").value & " - " & Recordset1("ShipToCity").value & "," & Recordset1("ShipToState").value & """"
no = no + 1
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
closetag='</div>';