I don't know much about javascript, but looking at the documentation you should be able to do something like this:
In your HTML file:
|
Quellcode
|
1
2
3
4
5
|
<script type="text/javascript">
function getrandomnumber() {
document.getElementById("krpanoSWFObject").set("rnumber", Math.random());
}
</script>
|
In your XML in an event somewhere:
|
Quellcode
|
1
|
js(getrandomnumber());
|
would place a random number in the variable rnumber (as in get(rnumber);).
You could then use the same method to obtain a random word. Do you want words from a prewritten text or gibberish?
EDIT: There seems to be a variable called "random" in the xml root, though I don't know what it does. Maybe it returns a different result every time it's read?