[Proto-Scripty] Re: 'hoverclass' option for draggables?

2008-10-03 Thread Diodeus
onDrag runs continuously as you drag the item. Use onStart and onEnd. Like this: new Draggable('sample',{onStart:function(){$ ('sample').addClassName('dark')},onEnd:function(){$ ('sample').removeClassName('dark')}}) On Oct 3, 10:16 am, lfortin [EMAIL PROTECTED] wrote: With the Droppable

[Proto-Scripty] Re: 'hoverclass' option for draggables?

2008-10-03 Thread Diodeus
I'm not sure that answered your question. What conditions are required for the hover? On Oct 3, 11:10 am, Diodeus [EMAIL PROTECTED] wrote: onDrag runs continuously as you drag the item. Use onStart and onEnd. Like this: new Draggable('sample',{onStart:function(){$

[Proto-Scripty] Re: 'hoverclass' option for draggables?

2008-10-03 Thread lfortin
Thanks for your reply. The required condition is that the draggable is being moved over a droppable which can accept the draggable. In fact, the same behavior as the droppable 'hoverclass' option, but add the css class to the draggable instead of the droppable. Is it possible? On Oct 3,