# Is this Carousel??

**URL:** <https://discourse.softpress.com/t/is-this-carousel/4864>\
**Category:** Off Topic\
**Created:** [May 26, 2009, 8:03am UTC](https://discourse.softpress.com/t/is-this-carousel/4864 "2009-05-26T08:03:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Tucker](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/p/97f17d/32.png) [@Peter\_Tucker](https://discourse.softpress.com/u/Peter_Tucker)\
**Post date:** [May 26, 2009, 8:03am UTC](https://discourse.softpress.com/t/is-this-carousel/4864/1 "2009-05-26T08:03:44Z")

</div>

This site uses what looks like an interesting variation on Walter’s Carousel  
action, or is it?

```
http://www.sustrans.org.uk/

```

Best wishes Peter

–

================================  
Peter Tucker, Oxford UK email@hidden

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [May 26, 2009, 2:45pm UTC](https://discourse.softpress.com/t/is-this-carousel/4864/2 "2009-05-26T14:45:25Z")

</div>

This is using jQuery, and yes, it is doing a very similar thing. It  
appears to actually be doing a sort of “mash up” between Carousel and  
Accordion, you might want to investigate building this with the  
Accordion and then using a timer to get the effect to shift on  
schedule. Look in Prototype at the PeriodicalExecuter[1] for the basic  
tools to use. You’d want to start a PE, retain a reference to it, and  
then if you observe a click on the Accordion’s container, stop the PE.

```auto
var changeAccordion = function(){
	//do something here to switch the currently
	//open element to the next closed one
};
var pe = new PeriodicalExecuter(changeAccordion,2);
$('accordionContainer').observe('click',function(evt){ pe.stop(); });

```

Obviously, you’ll need a little more magic in your changeAccordion()  
function, but the details of that implementation depend entirely on  
the construction of your Accordion element.

Walter

1. [Prototype API Documentation | PeriodicalExecuter (Deprecated URL)](http://prototypejs.org/api/periodicalExecuter)

On May 26, 2009, at 4:03 AM, Peter Tucker wrote:

> This site uses what looks like an interesting variation on Walter’s  
> Carousel  
> action, or is it?
> 
> [http://www.sustrans.org.uk/](http://www.sustrans.org.uk/)
> 
> Best wishes Peter
> 
> –
> 
> ================================  
> Peter Tucker, Oxford UK email@hidden
> 
> * * *
> 
> offtopic mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
