I want to pass a value to this JavaScript from the database (using datareader in asp.net(C#)).
The script is from http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm
I need to set a pass value in the below line:
leftrightslide[cnt] = '<a href="MYWEBPAGE"><img src="MYIMAGE FRM DATABASE.gif" border=1></a>';
cnt++;
So the value of the datareader would be passed into the JavaScript array.