Is this Carousel??

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

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.

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)

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/

Best wishes Peter

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


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


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