Posted on 2012-03-11 03:00
leekiang 阅读(982)
评论(0) 编辑 收藏 所属分类:
jquery(进去而已)
slideViewer:http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
slideViewerPro:Prohttp://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/index.html
slideViewerPro使用配置说明 http://www.oschina.net/p/slideviewerpro
Can I make the Jquery slideViewer autoplay?<scripttype="text/javascript">
var theLinks;
var nCount =0;
var theTimerID;
function init(){
$("div#mygalone").slideView();
theLinks = jQuery('#stripTransmitter0 a');
//for kill interval purposes
theTimerID = setInterval("autoSlide()",5000);
}
function autoSlide(){
jQuery.each(theLinks,function(i){
if(jQuery(this).hasClass('current')){
jQuery(theLinks[((i+1< theLinks.length)?(i+1):0)]).trigger("click");
returnfalse;
}
});
}
$(window).bind("load", init );
</script>
The way I see it you basically have 3 options here:
(1) - Use slideViewPro, but disable thumbnails using the thumbsVis:false
option as shown below
$("div#noui").slideViewerPro({
galBorderWidth:0,
autoslide:true,
thumbsVis:false,
shuffle:true
});
(2) - Switch to using the jQuery cycle plug-in instead
(3) - Edit the source code of original slideViewer
and add your own autoslide
implementation by using timers and firing the click event on the navigation.