I had already worked the below out while you were responding, I'll look into this filename business later.
There's no need to edit the script. And I see no need to use the existing pause variable, but it could be. One can just set the resume delay to an arbitrary amount. Since it would be best to have it longer than the pause value anyway, why not just make up your own?
Here's a demo using auto resume (addition highlighted):
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.4.2/jquery.min.js"></script>
<style type="text/css">
#myreel{ /*sample CSS for demo*/
border:15px solid black;
}
.paginate{
width: 330px;
margin-top:5px;
font:bold 14px Arial;
text-align:center;
}
</style>
<script src="reelslideshow.js" type="text/javascript">
/***********************************************
* Continuous Reel Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
</script>
<script type="text/javascript">
var firstreel=new reelslideshow({
wrapperid: "myreel", //ID of blank DIV on page to house Slideshow
dimensions: [300, 200], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg"], //["image_path", "optional_link", "optional_target"]
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new"],
["http://i30.tinypic.com/531q3n.jpg"],
["http://i31.tinypic.com/119w28m.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2000, cycles:0, pauseonmouseover:true},
orientation: "h", //Valid values: "h" or "v"
persist: true, //remember last viewed slide and recall within same session?
slideduration: 300 //transition duration (milliseconds)
})
jQuery(function($){
$('.paginate a').click(function(){
setTimeout(function(){firstreel.rotate.call(firstreel);}, 5000);
});
});
</script>
</head>
<body>
<div id="myreel"></div>
<div class="paginate">
= <a href="javascript:firstreel.navigate('back')" style="margin-right:200px;">back</a> <a href="javascript:firstreel.navigate('forth')">forth</a> =
</div>
</body>
</html>
Notes: See the red 0 for cycles? This means that it will cycle continuously. Without that, even with this auto resume addition, it will stop at some point and be unable to start again.
If you want help adapting this to your Reel Slideshow:
Please post a link to the page on your site where you are trying this.
Bookmarks