keywords = [
"http://www.website-for-hair.com/",
"http://www.website-for-shoes.com/"
]
var keyword = keywords[Math.floor(Math.random()*keywords.length)]
document.write('<a href="'+keyword+'"><img src="http://i.imgur.com/test.jpg" title="Test Title" /></a>');
This code functions as intended when rotating through domains. However, I now need to implement unique images for each website and display the domain along with the corresponding image using +keyword+
. Any assistance on how to achieve this would be greatly appreciated.