12 Jan 2006

How to change cocoon ajax fade affect


<script type="text/javascript">
var myFader = function(elt) {
new cocoon.ajax.Fader(elt, "#EBCA7A").start();
}
cocoon.ajax.BrowserUpdater.highlight = myFader;
</script>

Credit goes to philou and vincent ;)

2 comments:

Anonymous said...

Hey, no credit for me that wrote it and made sure you could specify a different color?

Benjamin Francisoud said...

I'm thinking of adding a permanent link:

"Thank you sylvain for you're cocoon full-stack web framework mvc world domination master-piece software."

to my blog ;)