Here is the website in question:
Basically the client now wants me to make the random image script images a link back to the home page. Simple, right? Well I can’t quite figure it out since they are javascript. How do I do this?
<script language=”JavaScript”>
var theImages = new Array()
theImages[0] = ‘adxwide.png’
theImages[1] = ‘adxwide1.png’
theImages[2] = ‘adxwide2.png’
theImages[3] = ‘adxwide3.png’
theImages[4] = ‘adxwide4.png’
theImages[5] = ‘adxwide5.png’
theImages[6] = ‘adxwide6.png’
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write(‘<img src=”‘+theImages[whichImage]+'”>’);
}
</script>