When you define "objects," I'm assuming it's something that can be represented as HTML, be it plain text, html tags, or an image reference.
Options:
1) Server-side database
JSP, ASP, etc allow you to say [html]...<%=object_here%>...[/html] or some variant thereof. A database call would make it trivial to add more such objects. Randomization is a little bit of a mental exercise, but not a horrible one. However, there's a bit of a learning curve.
2) Server-side script with sequentially-named files
Most scripting languages allow you to open external files to include in the output. Name them 0001.inc-1000.inc and use a random function to pick one.
3) Client-side script with sequentially-named files
Do pretty much the same thing with the exec() statement in JavaScript to write a [script language="javascript" src="0001.js"]. Then have that .js file do a document.write() of whatever you need. I'll have to check whether browsers support this kind of multi-pass scripting. I seem to recall using something like that before, but it was a few years ago. Otherwise, there's probably another workaround for opening external content. |