一旦这工作,我将能够对幻灯片进行更具体的调用,从而使其在我的“前端使用环境”中正常工作。
嘿看... https://github.com/nathansearles/Slides/blob/master/source/slides.js#L123
这对你有帮助吗?
/*
Method Calls - The good stuff
============================================================
Play:
$("#slides").slides("play");
Pause:
$("#slides").slides("pause");
Stop:
$("#slides").slides("stop");
Next:
$("#slides").slides("next");
- Uses default effect
$("#slides").slides("next","fade");
- Define effect, "slide" or "fade"
Previous:
$("#slides").slides("previous");
- Uses default effect
$("#slides").slides("previous","fade");
- Define effect, "slide" or "fade"
Goto a slide
$("#slides").slides("slide",2);
- Goto slide 2 using default effect
$("#slides").slides("slide",4,"fade");
- Define effect, "slide" or "fade"
Update:
$("#slides").slides("update");
- Rebuilds pagination
Destroy:
$("#slides").slides("destroy");
- Removes SlidesJS, returns to predefined state
Status:
$("#slides").slides("status");
- Returns JSON object:
{
current: 4,
state: "playing",
total: 7
}
$("#slides").slides("status","current");
- Returns current slide number
$("#slides").slides("status","state");
- Returns playing, paused, or stopped
$("#slides").slides("status","total");
- Returns total slides in slideshow
*/
如果这不是您想要做的,您可以随时查看示例http://slidesjs.com/或报告问题https://github.com/nathansearles/slides/issues以获得更具体的信息帮助或要求新功能。如果您想要做的事情不是由插件处理,您必须请求该功能或编辑插件代码(提示:第一个答案更好)