“Undefined is null of not an object” is a very basic error message that can be produced in a huge range of situations (it's JScript's effective equivalent of a null pointer exception). So it's unlikely yours is the same error as mentioned above.
I don't get that error though. I get “Invalid argument”, which seems to be caused by:
new Effect.Move(_div, {sync: true, x: '50%', y: 35, mode: 'relative' })
If I change the % to a normal integer pixel value it works fine. x
is documented as accepting only an integer value not a CSS measurement; the '%' doesn't work for me in other browsers either (acts as 0). I guess you've made this feature up!
As Fabien mentioned, you also need to insert some var
statements, otherwise you're scribbling over the globals and Message will blow up if you try to create two of them. Plus take care not to leave a trailing ,
in an array literal (due to the commented line), as this confuses IE.