I've seen specific examples using shuffle on the site, but could anyone write a general code for any given images?
This may be your answer. Your feedback is appreciated.
var myimages=new Array()
var imagelinks=new Array()
document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
Generating random picture including it's own link each time the page refreshed. But I want something that when I click the image, it opened new page / tab / window, just like when you click outside link from this forum.
Users who have thanked ChrishHardwick for this post:
Hi is it possible to load images to fullscreen for the above random image generator script?
I noticed that the images being rejected in the random selection process are still visible as frames on the screen, which is kind of ugly. Is there any way to prevent them being visible until the actual image is randomly selected?
Also the above script doesn't seem to end when the main script loads. Is it possible to do that?