Mosaic is a small JavaScript function which allows you to create a pane filled with changing images.
- Include mosaic.js script in your page
- Call function
mosaic(elementId, colsNum, rowsNum, imagesArray, interval)
where:elementId
is the id of the pane elementcolsNum
is the number of columns in the panerowsNum
is the number of rows in the paneimageArray
is the array of images' URLsinterval
is the time interval before the random image changes (default value is 2 seconds)