Rukas said:
Yeah Id like that but need to work out how to do it, the top is made up of 4 different images. I could randomly generate them, but they wouldnt match up, if you get what I mean. So i have to work out how to, or even if its possible, group the images so they generate at the same time.
Why not one image? An image of that size should not be a problem for 56k.
If you had it as one image then you can use this java script:
Random Image
The following will generate a random image with link. It does require some customization so only experienced developers should use it. You will need to change link information, image information, and the number of images the script can display. If you have five images that can possibly be displayed you will need to change the '2' in the line rnumb += Math.floor(Math.random()*2); to '5'.
<html>
<head>
<title></title>
</head>
<body>
<script language="javascript">
<!--
var b1dis = "<a href=\"";
var bdis = "\"><img src=\"";
var edis = " width=\"110\" height=\"100\" alt=\"some text\" border=\"0\"></a>";
var rnumb = "";
var img = "";
rnumb += Math.floor(Math.random()*3);
img = rnumb;
if (img == "0") {
document.write(b1dis+ "page1.html" +bdis+ "images/page1.gif\"" +edis);
}
if (img == "1") {
document.write(b1dis+ "page2.html" +bdis+ "images/page2.gif\"" +edis);
}
if (img == "2") {
document.write(b1dis+ "page3.html" +bdis+ "images/page3.gif\"" +edis);
}
// -->
</script>
</body>
</html>