Auto Spin?
Permalink Browser Info Environment
Is there a way to make this automatically spin upon loading rather than waiting for mouse input?
Type: | Discussion |
---|---|
Status: | New |
Yes, I think that's the effect I'm looking for. When might another version be coming out?
The next will containt the possibilities to add content from Scrabook. I think that will be not until 1 month.
Regards,
Seb
Regards,
Seb
Try this, if you look in the js folder and open the jquery.roundabout-1.0.min.js file, it's the default for the Lazy Suzan option.
In that file you'll see a snippet of code like this:
Try changing it to:
This won't become an option in the editor when you place it on a page, so I suggest you create a custom template for this block and name it, 'Auto Rotate' or something so that you still have the original in tact.
In that file you'll see a snippet of code like this:
clickToFocus: (options.clickToFocus !== false),
Try changing it to:
clickToFocus: (options.clickToFocus !== true),
This won't become an option in the editor when you place it on a page, so I suggest you create a custom template for this block and name it, 'Auto Rotate' or something so that you still have the original in tact.
I'm afraid that the 'clickToFocus' solution didn't work for me, but the mod used on the showcase site (http://www.concrete5.org/about/showcase/business/rafia-chic/) seemed to work OK. I replaced the last couple of lines from the view.php file:
with these lines:
minZ:4 }); }); // ]]> </script> <!-- -->
with these lines:
minZ:4 }) .hover( function() { clearInterval(interval); }, function() { interval = startAutoPlay(); } ); interval = startAutoPlay(); }); function startAutoPlay() { return setInterval(function() { $('#roundabout_<?php echo $bID?>_handler ul').roundabout_animateToNextChild();
Viewing 15 lines of 21 lines. View entire code block.
That did the trick perfectly. Thanks.
Thanks mmwfrank ! Great work.
Tried what you said....
but looks a little different ie its not just the view.php
and the code you give is on view_fileset.php and view_stacks.php
so created in root blocks - roundabout_gallery > templates > autoview
in here places view.php, view_fileset.php and view_stacks.php
changed the code in the latter 2 files as described, chose the custom template, now its not even showing any images
any help on this one? cheers
but looks a little different ie its not just the view.php
and the code you give is on view_fileset.php and view_stacks.php
so created in root blocks - roundabout_gallery > templates > autoview
in here places view.php, view_fileset.php and view_stacks.php
changed the code in the latter 2 files as described, chose the custom template, now its not even showing any images
any help on this one? cheers
There is an easier way, just set the "autoplay: true," in the file view_fileset.php.
Full function:
Full function:
$(document).ready(function() { $('#roundabout_<?php echo $bID?>_handler').roundabout({ shape: "<?php echo $shape ? $shape : 'lazySusan'?>", duration: <?php echo $duration?>, minOpacity: <?php echo $minOpacity?>, minScale: <?php echo $minScale?>, easing: "<?php echo $easing?>", reflect: true, autoplay: true, maxZ : <?php echo ( is_array($rg) ? count($rg) : count($scrapbookBlocks) ) + 4?>, minZ:4 });
They are actually no diaporama inside. It's possible that will be contained in the next version.