AH-SID
YOUNGWEEZY I was searching, I got another code to make a random photos/images (I'm not really understand this code but it's work)
.
Add a folder > fill with some photos/images > use this code:
<script>
var src = '<xt:filelist folder="/photos" template=".file_url.|" filter="*.*" />';
var srcArray = new Array();
var srcArray = src.split('|');
var alt = '<xt:filelist folder="/photos" template=".file_name_parsed.|" filter="*.*" />';
var altArray = new Array();
var altArray = alt.split('|');
var number=Math.floor(Math.random()*(srcArray.length-1));
document.write('<img src="'+srcArray[number]+'" alt="'+altArray[number]+'" />');
</script>
Copy code