PDA

View Full Version : problem with carusel image slide affect



odelya
03-15-2005, 10:40 PM
hi!
i am trying to generate the pictures' source by myself.
so i wrote this code in asp:literal (for asp.net):

Literal1.Text = "<script type='text/javascript'>" & _
"var Car_Image_Width=140;" & _
"var Car_Image_Height=225;" & _
"var Car_Border=true;" & _
"var Car_Border_Color='white';" & _
"var Car_Speed=4;" & _
"var Car_Direction=true;" & _
"var Car_NoOfSides=" & c & ";"
Literal1.Text = Literal1.Text + "Car_Image_Sources=new Array("
dt.Clear()
db.SetAdpter("select * from main")
db.filldt(dt)
For i = 0 To dt.Rows.Count - 2
Literal1.Text = Literal1.Text + "'file:///C:\Inetpub\wwwroot\odshir\main\" + dt.Rows(i).Item("name") + "','',"
Next i
Literal1.Text = Literal1.Text + "'file:///C:\Inetpub\wwwroot\odshir\main\" + dt.Rows(i).Item("name") + "','');" Literal1.Text = Literal1.Text + "CW_I=new Array(Car_NoOfSides/2+1);C_ClcW=new Array(Car_NoOfSides/2);" & _

and so,
but when i run it, i can't see the pictures, although the souce is correct and when i type it from the html page, it's working.
what the solution?