I'm in my first class of asp and we are doing a website project. My friend and I doing a site that plays with words. We want to do a "writer's block" exercise where an image is displayed, the writer writes in a text area, and after a minute, another image displays. I found code to randomly select from a group of pictures:
Dim RandomNum, UpperBound, LowerBound
LowerBound = 1 'Put in the first picture #
UpperBound = 10 'Put in the last picture #
RandomNum = Int((UpperBound - LowerBound + 1) * Rnd + LowerBound)
And I even understand it mostly. I know I need to add a timer somewhere and I'm wondering, if I do, will the whole page need to be refreshed, or will the image just be changed? If the whole page refreshes, then I know I'll need to make sure the text the user has written doesn't get lost. Or, maybe I have to use some client side script? I want to try to do as much server side as possible since that's the class topic, but I also want it to work.
So I'm just trying to figure out how this works logically before I head down a road of code that might be completely off. And please remember, I haven't done any coding until this semester. Thanks so much. Suzy
0 · ·