onDrag runs continuously as you drag the item. Use onStart and onEnd.

Like this:

new Draggable('sample',{onStart:function(){$

On Oct 3, 10:16 am, lfortin <[EMAIL PROTECTED]> wrote:
> With the Droppable class, there is an option 'hoverclass', which
> allows us to temporarily add a css class when an acceptable draggable
> is hovering it.
> I was wondering if such an option exists for the Draggable class? To
> add a css class to the draggable instead of the droppable in this
> case?
> If it does not exists, do you have a suggestion on how to do it using
> the onDrag callback?
> Thanks in advance,
> -Laurent
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to