The following (example #1) will generate a random image with a link. If no link is required see, example #2. It does require some customization so only experienced developers should use it. You will need to change link information, image information, and the number of images the script can display. If you have five images that can possibly be displayed you will need to change the '2' in the line rnumb += Math.floor(Math.random()*2); to '5'. ========================================= =EXAMPLE #1============================== ========================================= ========================================= =EXAMPLE #2============================== =========================================