# Random Rotating Background Images using javaScript

**URL:** <https://forum.kirupa.com/t/random-rotating-background-images-using-javascript/224380>\
**Category:** web dev\
**Created:** [May 1, 2007, 11:22pm UTC](https://forum.kirupa.com/t/random-rotating-background-images-using-javascript/224380 "2007-05-01T23:22:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter71](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@Peter71](https://forum.kirupa.com/u/Peter71)\
**Post date:** [May 1, 2007, 11:22pm UTC](https://forum.kirupa.com/t/random-rotating-background-images-using-javascript/224380/1 "2007-05-01T23:22:37Z")

</div>

Hello, I was wondering if anyone had a script that they used to randomly change background images. Basically I have a table that has a background image and I want that image to be a random image selected from an array. I have used one in the past to just randomly display images with links attached, but I have never done it with a background image. So to speak.

Anyway, any help you can offer would be great! Thanks -

Peter
