How to use the Script

the code used in the example of this page:

function demo() {
new ProtoSwitcher('header', ['blue', 'red', 'black'], {label:'<h2>CSS SWITCHER DEMO &rarr;</h2>'});
document.observe ('dom:loaded', demo, false);


You can post your comments, suggestions or bug reports on my blog, which also uses protoswitcher: I'm happy to receive aid to improve the script.


Get Protoswitcher v.2 (14/01/2009) - the package contains an working example and the Prototype library.

You can view the source code here.