Hello all,
I’m trying to create a page that load up a random image and text when you enter the website. I’ve found a javascript that does this already but it only does it for the random images. I need some help so that it would randomly load both the images and the plain text (right underneath the image). Would somehelp give me a hand on this? Here is the javascript code below for just the random images.
<script language=”javascript”>
<!–
// Script: Random Image
// Version: 1.0
// Last Updated: June 12th 1998
// Author: Scott Brady
// Org: HotSource HTML Help
// Email: [email][email protected]
// Website: [url]http://www.sbrady.com/hotsource/
var b1dis = “<a href=””;
var bdis = “”><img src=””;
var edis = “width=”100″ height=”100″ alt=”test images” border=”0″></a>”;
var rnumb = “”;
var img = “”;
rnumb += Math.floor(Math.random()*3);
img = rnumb;
if (img == “0”) {
document.write(b1dis+ “
}
if (img == “1”) {
document.write(b1dis+ “
}
if (img == “2”) {
document.write(b1dis+ “
}
// –>
</script>
Thanks in advance for your help.
–comaiwat