So I have a site in which I have a description area and I have it be a random description on refresh by using the following code:
You can have links with images with this code :
At first insert this into your page :
Then
var Banners= [
"http://static.ddmcdn.com/gif/lightning-gallery-17.jpg",
"http://static.ddmcdn.com/gif/lightning-gallery-18.jpg",
"http://static.ddmcdn.com/gif/lightning-gallery-19.jpg",
"http://static.ddmcdn.com/gif/lightning-gallery-20.jpg",
"http://static.ddmcdn.com/gif/lightning-gallery-21.jpg"
];
var Links= [
"http://static.ddmcdn.com/gif/lightning-gallery-17.jpg",
"http://static.ddmcdn.com/gif/lightning-gallery-18.jpg",
"http://static.ddmcdn.com/gif/lightning-gallery-19.jpg",
"http://static.ddmcdn.com/gif/lightning-gallery-20.jpg",
"http://static.ddmcdn.com/gif/lightning-gallery-21.jpg"
];
var size = Banners.length
var x = Math.floor(size*Math.random())
document.getElementById('BannersSrc').src=Banners[x];
document.getElementById('LinksRef').href=Links[x];