CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
Anything Slider AutoPlay
Ebony_McLaughlin
Permalink to comment
#
October 2011
I'm not having any luck getting the autoplay to work for the Anything Slider...I've added this code to header.php
$(function(){
$('#slider').anythingSlider(); // add any non-default options here
// Slideshow options
autoPlay: true;
});
But its not playing automatically at www.vigourdynamicfitness.com.au...can anyone please help?
Remeste
Permalink to comment
#
October 2011
I think the ";" at the end of autoPlay: true is invalid.
autoPlay : true,
Could be completely wrong though :P
Ebony_McLaughlin
Permalink to comment
#
October 2011
I've given that a go..it breaks the code and positions the photos into a vertical scrolling bar...
bananablues
Permalink to comment
#
October 2011
The correct coding:
$(function(){
$('#slider').anythingSlider({
autoPlay: true
});
});
bananablues
Permalink to comment
#
October 2011
$(function(){
$('#slider').anythingSlider({
autoPlay: true
});
});
Mottie
Permalink to comment
#
October 2011
@Ebony_McLaughlin
! LOL Oops, I just realized that there was an error in the code I replied to you with previously, but
@bananablues
has it correct above. So no need to be repetitive :)
Ebony_McLaughlin
Permalink to comment
#
October 2011
SPOT ON! Thanks you two =D
Kinetic
Permalink to comment
#
June 2012
that works great but anytime I try to add theme: metallic or anything else it breaks the whole slider (yeah Im brand new to jquery )
Add a Comment
$(function(){
$('#slider').anythingSlider(); // add any non-default options here
// Slideshow options
autoPlay: true;
});
But its not playing automatically at www.vigourdynamicfitness.com.au...can anyone please help?
Could be completely wrong though :P
$('#slider').anythingSlider({
autoPlay: true
});
});