First of all, is this possible?
If yes:
I found a javascript with the discription of the javascript for random images
it looks like this:
<HEAD>
<title>Random Image Test</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theImages[0] = 'http://sorceressmemorial.com/slike/banner/banner_edea_1.gif'
theImages[1] = 'http://sorceressmemorial.com/slike/banner/banner_edea_2.gif'
theImages[2] = 'http://sorceressmemorial.com/slike/banner/banner_edea_3.gif'
theImages[3] = 'http://sorceressmemorial.com/slike/banner/banner_edea_4.gif'
theImages[4] = 'http://sorceressmemorial.com/slike/banner/banner_edea_5.gif'
theImages[5] = 'http://sorceressmemorial.com/slike/banner/banner_edea_6.gif'
theImages[6] = 'http://sorceressmemorial.com/slike/banner/banner_rinoa_1.gif'
theImages[7] = 'http://sorceressmemorial.com/slike/banner/banner_rinoa_2.gif'
theImages[8] = 'http://sorceressmemorial.com/slike/banner/banner_ultimecia_1.gif'
theImages[9] = 'http://sorceressmemorial.com/slike/banner/banner_ultimecia_2.gif'
theImages[10] = 'http://sorceressmemorial.com/slike/banner/banner_ultimecia_3.gif'
// do not edit anything below this line
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]+'">');
}
// End -->
</script>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
showImage();
// End -->
</script>
<p><center>
<!-- Script Size: 1.49 KB -->
</BODY>
So... where should I paste the head and body, in order to have a random picture in my banner?
If this isn't possible: (was a good idea>
If yes:
I found a javascript with the discription of the javascript for random images
it looks like this:
<HEAD>
<title>Random Image Test</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theImages[0] = 'http://sorceressmemorial.com/slike/banner/banner_edea_1.gif'
theImages[1] = 'http://sorceressmemorial.com/slike/banner/banner_edea_2.gif'
theImages[2] = 'http://sorceressmemorial.com/slike/banner/banner_edea_3.gif'
theImages[3] = 'http://sorceressmemorial.com/slike/banner/banner_edea_4.gif'
theImages[4] = 'http://sorceressmemorial.com/slike/banner/banner_edea_5.gif'
theImages[5] = 'http://sorceressmemorial.com/slike/banner/banner_edea_6.gif'
theImages[6] = 'http://sorceressmemorial.com/slike/banner/banner_rinoa_1.gif'
theImages[7] = 'http://sorceressmemorial.com/slike/banner/banner_rinoa_2.gif'
theImages[8] = 'http://sorceressmemorial.com/slike/banner/banner_ultimecia_1.gif'
theImages[9] = 'http://sorceressmemorial.com/slike/banner/banner_ultimecia_2.gif'
theImages[10] = 'http://sorceressmemorial.com/slike/banner/banner_ultimecia_3.gif'
// do not edit anything below this line
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]+'">');
}
// End -->
</script>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
showImage();
// End -->
</script>
<p><center>
<!-- Script Size: 1.49 KB -->
</BODY>
So... where should I paste the head and body, in order to have a random picture in my banner?
If this isn't possible: (was a good idea>
Comment