[Proto-Scripty] Re: Move an image

2009-02-16 Thread Timm Florian Gloger
Hi, your code does not work, because there is no Element method called move. You have to a) create a new Effect for this and b) you must merge the two options hashes before using them since move expects only one: new Effect.Move('banner1' , $H(options).merge({x: 60, y:-30})) I would also

[Proto-Scripty] Re: Move an image

2009-02-16 Thread Timm Florian Gloger
At first: Sorry but i missed that you do not specify all required options for Effect.Move You should check at http://wiki.github.com/madrobby/scriptaculous/effect-move , there you will find that you have to specifiy x, y and mode at least. And i just realized that using a hash as container for

[Proto-Scripty] Re: Move - OnMouseMove- Only once

2009-02-16 Thread Timm Florian Gloger
The problem is that you have different scopes in all callbacks. So the callback called when a mouseover event bubbles up, does not know about ausgefahren as defined in the callback of dom:loaded and so on. You could use a global variable to save the state or use a custom object with the