I have ContentFlow implemented on a site cookbookfavors.com and would like to know if there was a way to modify the script so it would automatically scroll through the items? Even if someone could point me to where to look in the code, to add a loop, or something… Thanks!
EDIT: The script: http://www.jacksasylum.eu/ContentFlow/index.php
There is nothing in the documentation that would help… I’d have to modify code.
Yes, but the answer is not to “modify the script.” Instead, you will write a small helper script to call the ContentFlow’s
moveTomethod every “x” seconds. The ContentFlow library itself does not need to be changed.See the docs for the library’s
moveTomethod.Your script should do the following:
moveTomethod to move to the next item.You’ll also need to track which is the current item. Ask if you need more info.
Added Turns out, there is a slideshow AddOn for the ContentFlow library that will handle the auto-scrolling for you. See the docs that show you how to add in an AddOn.
If you don’t want the users to see the start/stop slideshow controls, try hiding them via CSS.