- Create Account

FSMenu doesn't work with mootools

Forums > FreeStyle Menus > FSMenu doesn't work with mootools
Author
Message

1) LukE Group: Members
Posts: 4 Joined: 14 Mar 2007 Location: Poland IP: 88.199.--.--
Hi.

Is there any chance for FSMenu to work with mootools? Well i use lightbox with FSMenu and it works fine. I found possibly better (faster nad crashless) alternative for lightbox - slimbox and it requires mootols: http://www.digitalia.be/software/slimbox
but it won't work together with FSMenu. FSMenu doesn't show subinds at all.

Will be greatfull for answer.
-- Luke

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
Put the FSMenu script last in the page and see if that helps? And under what browser is this?

- Angus.

3) Guest Group: Guests
IP: 62.203.--.--
Hi

the following link shows a way to solve the problem with mootols and FSMenu in typolight. That may help you too, but I'm not sure, I haven't tried it out.

http://www.typolight.org/forum/viewtopic.php?id=2026

Sorry for my bad english

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
Ah, so it's an addEvent conflict! That looks like a good fix. I should really move my addEvent() into its own namespace or similar as it's a common function name.

Thanks - Angus.

5) musicory Group: Members
Posts: 3 Joined: 17 Mar 2008 Location: Orange County, CA IP: 68.5.--.--
Ok, so I just ran into this problem, but trying to translate it from these typolight instructions is a challenge. Can you help me out?

http://www.soundlightproductions.net/uploads/fnin/index.html

The menu shows up fine - the only issue is the menu animation.

Here is what the menu should look like, but with the mootools code removed:

http://www.soundlightproductions.net/uploads/fnin/index2.html

6) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
Easiest fix is to open fsmenu_commented.js in a text editor, and do a search/replace on "addEvent" replacing with "fsmAddEvent" or another unique name. Replace the addEvent calls in the menu setup <script> too wit hyour new name, and you should be good to go!

- Angus.

7) Dave Miller Group: Guests
IP: 217.34.--.--
Except that will also change 'addEventListener' into 'fsmAddEventListener', so that should then be changed back right?

Thanks for writing FSMenu, it's great!

8) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
True -- should've actually tried it myself ;). You are quite correct. Good spotting!

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.