If the mouse is over the image when the page first loads, it might cause the first image to not load. I've seen this in IE and I think one other, not sure. So it's unlikely to happen on an iphone or pad, but might. Here's the full range of what's in my version:
http://www.dynamicdrive.com/forums/s...188#post260188
All I added to that code for this person was (to the routines a method of detecting touch screens):
Code:
istouch: !!window.Touch || !!window.onmsgesturechange || (window.DocumentTouch && window.document instanceof window.DocumentTouch)
And then using that, disabled the mouseover pause here (already modified as outlined in the notes for that post I just linked to, additional modifications red):
Code:
function loaded_or_error(){
$loadingimg.hide()
if(!fadeSlideShow.routines.istouch){
setting.$wrapperdiv.bind('mouseenter', function(){setting.ismouseover=true}) //pause slideshow mouseover
}
slideshow.showslide(setting.curimage)
}
if ($curimage.get(0).complete){loaded_or_error(); //accounf for IE firing image.onload too soon for cached and small images
} else { //initialize slideshow when first image has fully loaded or errors out
$(new Image()).bind('load error', loaded_or_error).attr('src', $curimage.attr('src'));
}
But, as I told them, I have no idea if it will do any good for their problem. Worth a try. I tend to imagine not. Don't those devices ignore javascript mouseover/out anyway? If so, the above change and the changes already for this version should do nothing for them. Always worth testing though. Perhaps if they also have code on the page that translates mouseover/out events to gestures, well then maybe we would have a fix here.
Bookmarks