Forums / Setup & design / Javascript inside Exponential script / Comment14869
Iris Hoekstra - Roscam Abbing
Thursday 26 February 2004 8:51:04 am
Sorry, I wasn't very clear. I meant that I have made a class called Remark. Basically an object of this class is little more than a line of text.
I have made various 'Remark' objects but I only want to show one at a time on the webpage and I want it to be picked at random whenever a user hits the page. So at first, I was trying to generate a random number with Javascript and pass that as the offset parameter to the fetch function. Then I tried to use the 'shuffle' extension mentioned above. But none of that works.
I hope this explains what I'm trying to do.