Image menu mootools 1.2

horizontal menu, reveals more of the image as you rollover it.

Image menu mootools 1.2

by bionic on Sat Jun 21, 2008 7:27 am

Hi,

has anyone done an update on the code to allow for mootools 1.2. I am not confident enough yet to give it a shot, although I will mess with it of course

Thanks in advance.
bionic
 
Posts: 5
Joined: Sat Jun 14, 2008 12:07 pm

Re: Image menu mootools 1.2

by netweblogic on Mon Jun 23, 2008 9:29 am

I had to update some sites with 1.2 and consequently image menu was on one of those... fortunately the code is very 1.2 friendly.

To make it work on 1.2 just change line 18 from Fx.Transitions.quadOut to Fx.Transitions.Quad.easeOut or pass transition:Fx.Transitions.Quad.easeOut in the options class when creating the image menu.

I've posted the solution and an example with MooTools 1.2 on my blog

Thanks Sam for the good code!
netweblogic
 
Posts: 1
Joined: Sun Jun 22, 2008 6:31 pm

Re: Image menu mootools 1.2

by bionic on Mon Jun 23, 2008 2:46 pm

Thanks a lot netweblogic,

much appreciate the reply. I will go and do that now
bionic
 
Posts: 5
Joined: Sat Jun 14, 2008 12:07 pm

Re: Image menu mootools 1.2

by Severance on Sat Jun 28, 2008 6:29 pm

but the onOpen function doesn't work....
Severance
 
Posts: 7
Joined: Mon May 26, 2008 5:13 pm

Re: Image menu mootools 1.2

by tic on Mon Jun 30, 2008 1:59 pm

Yes, I would also like to get onOpen working with 1.2. Thanks all!
tic
 
Posts: 1
Joined: Mon Jun 30, 2008 1:55 pm

Re: Image menu mootools 1.2

by iRolf on Mon Jul 21, 2008 9:04 am

netweblogic, thank you for the worthy hint.

And, again, thank you Sam for your rocking solutions.

greetings from germany,
iRolf
iRolf
 
Posts: 4
Joined: Fri Jul 11, 2008 4:03 pm

Re: Image menu mootools 1.2

by Yashiro on Tue Aug 19, 2008 5:40 pm

Severance wrote:but the onOpen function doesn't work....


Mootools 1.2

setOptions doesn't save the onOpen event

i rewrote a function to set Options, so now i can store the function in the options

Code: Select all
setOpts:function(options){
for(var option in options)
this.getOptions()[option] = option;
}


And other thing, is needed to redefine the default values for onOpen and onClose
Code: Select all
onOpen: function(){},
onClose: function(){}


this two things will fix the setting of onOpen and onClose
Yashiro
 
Posts: 1
Joined: Tue Aug 19, 2008 5:33 pm

Re: Image menu mootools 1.2

by breitei on Mon Sep 29, 2008 8:46 am

where have i to put this code?
in the mootools files or in the imageMenu.js?

have i to change something else??
breitei
 
Posts: 1
Joined: Mon Sep 29, 2008 8:41 am

Re: Image menu mootools 1.2

by xiligroup on Sat Nov 15, 2008 4:11 pm

Mootools 1.2 introduce new features and way to fire event :

A more complete and running solution for imagemenu is explained step by step here

http://dev.xiligroup.com/?p=167

Good luck
xiligroup dev team
xiligroup
 
Posts: 1
Joined: Sat Nov 15, 2008 4:07 pm


Return to image menu

Who is online

Users browsing this forum: Alexa [Bot] and 0 guests