Hello.
this is my js:
[CODE] <script language=”javascript” type=”text/javascript”>
var pics = new Array([1,7,’Summer Beckett prays with a new convert’], [2,7,’Bethany Airgood is whole-heartily seeking the LORD’], [3,7,’Sarah Fuller is seeking the LORD’], [4,7,’Arew McGrew on his face before GOD.’], [8,9,’Smash and Bash Flyer’]);
function cp() {
var rand_no = Math.ceil(5*Math.random());
document.getElementById(‘ipip’).innerHTML = “<img src=’http://abirocks.com/imgs/adminUpload/” + pics[rand_no][0] + “.JPG’ height=’200′ /><br />” + pics[rand_no][2];
alert(rand_no);
if (rand_no == last_no){
cp();
}else{
setTimeout (‘cp()’, 5000);
var last_no = rand_no;
}
}
cp();
</script>
I have images named 1.JPG, 2.JPG, 3.JPG, etc… This code is in my header. In my body I have a div with an id of ipip. You can view the page live if you need anymore information at [URL=”http://abirocks.com”]http://abirocks.com
thanks for your help