I'm trying to create a random array NOT using php but calling up files using SSI "include virtual".
announcements = new Array(
// Pick a random file from the list
rnd.seed = (rnd.seed*9301+49297) % 233280;
document.write('<!--#include virtual="/commonfiles/' + announcements[rand(announcements.length)-1] + '" -->');
Not surprisingly, the document.write in the coding is throwing a "cannot complete this directive" error. Any idea if what I'm trying to do is even possible? (It is working just fine if I do not try to use SSI.)
I have searched as best I can here and by googling. I had hoped the following thread might have the answer but alas, I do not think so....