budapestnori
Technical User
Ok, I hope I can convey my thoughts enough for someone to help me out.
I have a web page, which when loaded will query a database & load a recordset with the file names of various images. There will never be fewer than 1 images, but an unlimited number of total images. ( 1 to n ) I then have three divs with ID of zero, one, and two.
When the page is finished loading, the recordset will be transferred to a javascript array. Then, initially, Div "zero" (on the left) should contain the text "hello client"; Div "one" should contain the first element of the array (current); Div "two" should contain the second array element (next). When "next" is clicked, Div "zero" will get the array element in Div "One", and Div "One" will get the array element in Div "Two".
It is a simple process of displaying images, in a series, with a forward and backward button on the left and right of an enlarged image. I say simple on in that it probably is for somone who has mastered coding. I could probably do it ASP, but I am trying to learn Javascript.
Two issues in particular that challenge me is what if there is only 1 image, and what happens when the end of the array is reached. I'd like Div "Two" to say "thank you" when the last array element is displayed in Div "One".
I have a web page, which when loaded will query a database & load a recordset with the file names of various images. There will never be fewer than 1 images, but an unlimited number of total images. ( 1 to n ) I then have three divs with ID of zero, one, and two.
When the page is finished loading, the recordset will be transferred to a javascript array. Then, initially, Div "zero" (on the left) should contain the text "hello client"; Div "one" should contain the first element of the array (current); Div "two" should contain the second array element (next). When "next" is clicked, Div "zero" will get the array element in Div "One", and Div "One" will get the array element in Div "Two".
It is a simple process of displaying images, in a series, with a forward and backward button on the left and right of an enlarged image. I say simple on in that it probably is for somone who has mastered coding. I could probably do it ASP, but I am trying to learn Javascript.
Two issues in particular that challenge me is what if there is only 1 image, and what happens when the end of the array is reached. I'd like Div "Two" to say "thank you" when the last array element is displayed in Div "One".