Marius,
Thanks for the response.
There are no other errors that I can see on the affected pages. The ‘rolling’ images just don’t roll. Only the first in the series displays. The second page with problems is
https://www.stmarksaberdeen.org.uk/2014-visit-to-aberdeen/
Here is the code I have used for both pages:
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
Home Page:
<script type="text/JavaScript" language="JavaScript">// <![CDATA[
var im= new Array()//set your pictures here as an array
im[0] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/Wallace-Ban.jpg';
im[1] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/Dome-Ban.jpg';
im[2] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/0004.jpg';
im[3] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/0004.jpg';
//add as many as you want, ie: im[3] = '03.jpg'; and so on
var time = 7000;// set delay in miliseconds
var q=1;
function slideI(){
document.getElementById('ima').setAttribute('src',im[q]);
q++;
if(q==im.length){q=0}
setTimeout('slideI()',time);
}
onload=function(){setTimeout('slideI()',time)}
// ]]></script>
<img id="ima" src="https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/Wallace-Ban.jpg" alt="" />
Visit Page:
<script type="text/JavaScript" language="JavaScript">// <![CDATA[
var im= new Array()//set your pictures here as an array
im[0] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/Bless.jpg';
im[1] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/one.jpg';
im[2] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/two.jpg';
im[3] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/three.jpg';
im[4] = 'https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/four.jpg';
//add as many as you want, ie: im[3] = '03.jpg'; and so on
var time = 7000; // set delay in miliseconds
var q=1;
function slideI(){
document.getElementById('ima').setAttribute('src',im[q]);
q++;
if(q==im.length){q=0}
setTimeout('slideI()',time);
}
onload=function(){setTimeout('slideI()',time)}
// ]]></script>
<img id="ima" src="https://www.stmarksaberdeen.org.uk/wp-content/uploads/2015/05/Bless.jpg" alt="" />
I hope you can help sort this problem.
Alex