Sure. I also discovered some problems with the preloading, so I've changed things around to only preload the first image. Presumably the time it takes to display it, will be enough for the next image to load normally. Here it is with that modification, and without the loading message:
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript">
jQuery(function($){
var transitionspeed = 2000; // Set speed for fade in effect
var displaytime = 3000; // Set duration of image once faded in
var preload = true; // Should script load first image before starting? (recommended)
/// No need to Edit Script below here ///
function callback(){
callback = function(){setTimeout(fadeThem, displaytime);};
$('#images img').css({visibility: 'visible'});
setTimeout(fadeThem, displaytime);
}
function fadeThem(){$('#images img').eq(0).hide().appendTo('#images').fadeIn(transitionspeed, callback);}
if(preload){
var pim = $('#images img').css({visibility: 'hidden'}).get(0);
$(new Image()).bind('load error', function(){
pim.style.visibility = 'visible';
fadeThem();
}).attr('src', pim.src);
} else {$('#images img:gt(0)').css({visibility: 'hidden'}); fadeThem();}
});
</script>
<style type="text/css">
#images {
width: 140px; /* Set to Image Width */
height: 225px; /* Set to Image Height */
position: relative; /* Required */
}
/* Below all Required */
#images img {
position: absolute;
top: 0;
left: 0;
}
/* End all Required */
</style>
</head>
<body>
<div id="images">
<img src="http://home.comcast.net/~jscheuer1/side/files/photo1.jpg" alt="original image" title="">
<img src="http://home.comcast.net/~jscheuer1/side/files/photo2.jpg" alt="original image" title="">
<img src="http://home.comcast.net/~jscheuer1/side/files/photo3.jpg" alt="original image" title="">
</div>
</body>
</html>
Bookmarks