any mootools wizards?

Associate
Joined
18 Oct 2002
Posts
404
Hi,

I did the following using mootools by taking an example from the demo site and adapting it to what i wanted it to do on my site.

http://jsfiddle.net/J6ZmG/2/

I will be honest, i have tried many times to understand mootools but, it always seems to stump me at the last hurdle.

in the above example when the cursor enters the div with the class cp_post_text_box, that div moves up like i want it to.

my question is: when the cursor enters cp_post_container div (large blue) then cp_post_text_box does the same as now.

I have been down this path many times before but never quite grasped it.

hope the above makes sense

Tim
 
Last edited:
I'm far from a wizard :P but I've had a go.

Since there's no way to determine if the event is already active it will close the text drawer if you move from the picture to the text or the other way around. (there might be a way to determine it, but as ive never used mootools i dont know :P)

http://jsfiddle.net/2822d/1/
 
Last edited:
Not used mootools before but have experience with jQuery and jQuery UI, here is another solution:

http://jsfiddle.net/J6ZmG/35/

I'm far from a wizard :P but I've had a go.

Since there's no way to determine if the event is already active it will close the text drawer if you move from the picture to the text or the other way around. (there might be a way to determine it, but as ive never used mootools i dont know :P)

http://jsfiddle.net/2822d/1/

Thanks guys.

@RobH - That is what i was aiming for thanks for showing the example.

@NickSlash - also thanks for the example it is good to see other peoples code, helps me understand better.

@fez - sorry about my explantion wasn't to clear. Basically my example wasnt broke i just wanted to get it to a stage RobH has shown.

once again, thanks guys for taking the time to give me examples to look at. Sometimes i feel i spend/waste too much time trying to figure it out on my own and give up, instead of asking for help.

Tim
 
Back
Top Bottom