I use the following script to change a background photo upon refresh:
<script type="text/javascript">
var randomImage = Math.floor((Math.random()*4)+1);
var homePage = document.getElementById('homepage');
homePage.style.backgroundImage= 'url("http://sample.com/images/bg/'+randomImage+'.jpg")';
</script>
I need to change the associated description and link with each photo. Here is the tag that needs to change:
<h3><a href="images/photographs/sample/sample.html">Description</a></h3>
Thank you for the help.