Well. Right now I'm trying to do this with JavaScript alone. I've created an array in a separate .js file and included it like this:
<script type="text/javascript" scr="tekst.js"></script>
and it's containing this:
var tekst=new Array("Different", "Data");
and I'm trying to call the array in the index file like this:
document.write(tekst[0]);
but nothing happens? Why is that? I've tried copying the array over to the index file, and then it works, but it's gonna be so many entries in the array that I want it separated. I don't know how to pick a random entry from a javascript array yet, maybe you could help with that as well?
I know that this is not a php matter anymore, but if someone could come up with a php-based solution I'd be very happy
