Ajax Bestiary: A Javascript Field Guide
 
Ajax Bestiary: A Javascript Field Guide
 
 

Amazing Image Based Menu Using MooTools

Posted by Don Albrecht

phatfusion has developed an awesome image based menu using mootools. Similar to the menu located at http://www.mootools.com; this Image Menu delivers a beautiful user experience.

Some Key Features

Mootools Image Menu By PhatFusion

  • onClick event keeps selected item open.
  • Click open item to close.
  • Specify a function for the onClick event.
  • Auto open when the page loads

See it in action at: http://www.phatfusion.net/imagemenu/index.htm

Related Posts


14 Comments

  • can i put a link inside the menu?
    so each pic will linked to a page

  • Sure,

    Use the following as the onClick function:

    function move() {
    window.location = ‘http://www.yourdomain.com’
    }

    or, put an .. around the internal span.

  • Tommy, your comment got munged by the database somehow, but I did get it via email.

    For the benefit of others, I’ve included it below:

    thanks Don…
    it works now :-)

    i have another question:
    can it select a pic menu, ie. the second

  • when i load a page?

    Yes, you can have it select a specific li on load. That is handled via the start parameter, simply pass it the index you would like it to load. (1 in your example).

  • so, it will be:
    http://myurl/?start=1 to load the second li?
    i have try that but still no effect :(

    sorry, i still can not make it
    *newbie*

  • No, you specify it in the constructor for the menu (JS). Add start:1, to the array of options.

    Like this:
    var myMenu = new ImageMenu($$(’#kwick .kwick’),{openWidth:200, onClick:demo, start:1});

  • thanks Don,
    now i can do a lot of things using imageMenu

  • Hey Don,

    the tag around the span in the list doesn’t work…
    or i got it wrong :)

    Nature

    happy holidays by the way :)

  • Hey Don,

    the tag around the span in the list doesn’t work…
    or i got it wrong

    Nature

  • Desipte several attemptes, I remain unable to get it work for me. I would highly appreciate if you give a working demo link for newbies like me. I will be forever thankful to you :)

  • my project: http://www.kiosmama.com/2008/

    please tell me if there is an easiest way to do

    TIA

    :)

  • Look at the source!!! everything you need is in the source….

  • Thing that works:

    People

  • Thing that works:
    [code]
    People[/code]

  • People

  • Leave a Reply