I currently have:
<script type='text/javascript'>
var imageID=0;
function changeimage(every_seconds){
//change the image
if(!imageID){
document.getByTagName("body").src="icwXI.jpg";
imageID++;
}
else{if(imageID==1){
document.getByTagName"body").src="JvuP9.jpg";
imageID++;
//call same function again for x of seconds
setTimeout("changeimage("+every_seconds+")",((every_seconds)*20));
</script>
</head>
<body style='background: url(icwXI.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;' onload='changeimage(1)'>
The goal is to display icwXI.jpg as the initial body background image, then switch to JvuP9.jpg after 20 seconds, and cycle back to icwXI.jpg 2 seconds later.
Despite my limited JavaScript skills, the code does not seem to be functioning correctly.
Thank you.