Hiya PR
I noticed you have a few minor errors in your code this is what the top half should look like
PHP Code:
adImages = new Array("images/banner/dods.gif","images/banner/dovermemorial1.gif","images/banner/doverlocals.gif","images/banner/DoverLifeboatBanner.gif"");
adURLS = new Array("http://www.dods.com","http://www.dover.gov.uk","http://www.lifeboat.org.uk" );
thisAd = 0;
imgCt = adImages.length;
function rotate() {
if (document.images) {
thisAd++;
if (thisAd == imgCt) {
thisAd = 0;
}
document.adbanner.src=adImages[thisAd];
document.getElementById('ad').href = adURLS[thisAd];
setTimeout("rotate()", 14 * 1000);
}
}
Try not to use too many white spaces with Javascript, and don't leave the semi colons out neither
Code:
imgCt = adImages.length;
Plus the url's will need to be the full urls complete with
http://www etc....
Try changing your code to the above and see if you can get it to work, i would imagine your creating some form of banner slideshow??
Hope this helps, let us know the result