我想做那种flash的图片切换,请问怎么从数据库把图片信息读取到javascript?
如题
------解决方案--------------------StringBuilder sb = new StringBuilder();
int i = 0;
while(dr.Read())
{
sb.Append( "imgArray[ " + i.ToString() + "] = ' " + dr[ "url "].ToString() + " ' ");
i++;
}
Literal1.Text = sb.ToString();
------解决方案--------------------var pics= " <%=str%> ";
var links= 'http