Hi, I deleted my past question to clarify it a bit. I realized it was a little hard to understand after I posted it.
I've found this script to display a random image every time a user refreshes my website using Java script:
<script type="text/javascript">
var banner = new Array();
banner[0] =
"website where image is hosted"
banner[1] =
"website where image is hosted"
banner[2] =
"website where image is hosted"
banner[3] =
"website where image is hosted"
var random = Math.round(3*Math.random());
document.write('<img style="border: 0;" src="' + banner[random] + '"/>');
</script>
Is it possible to have certain text assigned to each random image? For example, To have each random image have text under them describing whats on the picture.
If so, Can you provide me with the code to do this? I'd really appreciate it!
Tags: