Connect With WRD
feed via e-mail
feed via e-mail

Archive for the ‘Menu & Navigation’ Category

This is a nice animated menu built with MooTools.

The trick of the menu is a Flashy hover effect of the arrow (or any element you want).

MooTools Animated Menu

To use this menu script, you don’t even have to play with JavaScript except defining the variables:

  • background image container
  • nav elements
  • current nav element’s div id
  • background image’s y coordinate
  • left offset of the image

A well-described usage of the menu including the download of all the necessary files can be found at the script’s website.

FameID Menu is an advanced Flash accordion menu.

It uses XML to store the data, almost every setting is configurable and has a submenu feature which is kinda unique.

Flash Accordion Menu

Configuration options of this Flash XML accordion menu:

  • Background images of any menu items
  • Dimensions of the whole menu
  • Dimensions of the menu items when they are active (unfolded)
  • Transparency animation levels of menu items
  • Almost any setting for each menu item, such as colour, position, size, transparency etc.
  • Menu items’ header texts and link URLs
  • Choice of targeting simple URLs, frames or named windows
  • Addition of submenus to any menu’s item using XML
  • The look of submenu’s background panels
  • Speed of animation
  • Custom images for submenu’s button images
  • Ability to always display menu item’s text headers or only display them when the item is active

Sliding menus are very effective in areas where we have limited space .

This is a sliding top menu built with jQuery which can be fired through the open & close buttons or with any tag with the related class name.

You can also use it as an info box, login area & more.

Click here to see the final working demo of this jQuery sliding menu.

It presents the menu when closed like this:

Sliding Top Menu

And when opened:

jQuery Sliding Menu

Demo
Download

 

Click here to see the final working demo of this jQuery sliding menu.

 

Step 1 – HTML:

<div id="sliderWrap">
    <div id="openCloseIdentifier"></div>
    <div id="slider">
        <div id="sliderContent">
            Isn't this nice?
        </div>
        <div id="openCloseWrap">
            <a href="#" class="topMenuAction" id="topMenuImage">
                <img src="open.png" alt="open" />
            </a>
        </div>
    </div>
</div>

 

Step 2 – CSS:

<style type="text/css">
body {
margin: 0;
font-size:16px;
color: #000000;
font-family:Arial, Helvetica, sans-serif;
}
#sliderWrap {
margin: 0 auto;
width: 300px;
}
#slider {
position: absolute;
background-image:url(slider.png);
background-repeat:no-repeat;
background-position: bottom;
width: 300px;
height: 159px;
margin-top: -141px;
}
#slider img {
border: 0;
}
#sliderContent {
margin: 50px 0 0 50px;
position: absolute;
text-align:center;
background-color:#FFFFCC;
color:#333333;
font-weight:bold;
padding: 10px;
}
#header {
margin: 0 auto;
width: 600px;
background-color: #F0F0F0;
height: 200px;
padding: 10px;
}
#openCloseWrap {
position:absolute;
margin: 143px 0 0 120px;
font-size:12px;
font-weight:bold;
}
</style>

 

With the CSS file there are few major points:

  • #slider has to be positioned absolutely, so it can overlay the other content.
  • #slider has a negative top-margin which hides it.
  • #sliderContent is positioned absolutely to not to crack the open/close buttons
  • #openCloseWrap holding the buttons are positioned absolutely too.

Step 3 – jQuery / JavaScript:

<script type="text/javascript">
$(document).ready(function() {
    $(".topMenuAction").click( function() {
        if ($("#openCloseIdentifier").is(":hidden")) {
            $("#slider").animate({
                marginTop: "-141px"
                }, 500 );
            $("#topMenuImage").html('<img src="open.png"/>');
            $("#openCloseIdentifier").show();
        } else {
            $("#slider").animate({
                marginTop: "0px"
                }, 500 );
            $("#topMenuImage").html('<img src="close.png"/>');
            $("#openCloseIdentifier").hide();
        }
    }); 
});
</script>

The main trick is changing the top margin of #slider and update the open / close images.

We have an empty element named openCloseIdentifier which shows us whether the menu is open or closed. We simply hide it when the menu is open and show when it is closed.

Then all we do is:

if openCloseIdentifier = hidden then close the menu or if openCloseIdentifier = visible then open the menu.

Sliding effect can be fastened by changing the 500 value in JavaScript to a smaller number or else.

P.S. Down & up arrow icons are from the Crystal Clear icon set.

This is a very good looking Flash news slider (AS3 code) which uses XML for fetching the data.

The Flash slider simply displays an image and a descriptive text with a link to the URL wanted. The slider can be controlled via the next-previous & pause buttons.

Flash News Slider

You can find the steps for creating this Flash news slider as a tutorial and download the source files.

Design of the slider is inspired from the LaNacion.com website.

This is another coda slider built with jQuery (check YCodaSlider 2.0 – wrd post). As the use of them are becoming common, it is better we have different choices.

To run this coda slider, along with jQuery you need the following plugins:

jQuery Coda Slider

Some features of this coda slider:

  1. Degrades perfectly without JavaScript enabled
  2. Hitting the page with a specific hash (i.e. page.html#preview) shows the right tab, and highlights the right navigation
  3. Any link on the page that refers back to a panel should trigger the effect and highlight the right navigation – this should happen without any extra work.

Besides the codes, you can find how this coda slider is built in detail.

Dynamic Drive, a great resource for web designers & developers has a nice collection of free CSS menus that you may find handy.

There are several horizontal and vertical menu examples, buttons, pagination samples & more.

Free CSS Menus

Besides these CSS menus, Dynamic Drive is worth to browse deeply & regularly as new resources are added frequently.

This is a lightweight (only 1kb), accordion type JavaScript horizontal menu that does not require any JavaScript frameworks.

It is very easy to setup as the script automatically adjusts to the number of elements in the accordion and the dimensions of the accordion.

Accordion JavaScript Menu

How it works?

  • Create an unordered list like this:

<ul id="sm" class="sm">
<li><img src="images/1.gif" alt="" /></li>
<li><img src="images/2.gif" alt="" /></li>
<li><img src="images/3.gif" alt="" /></li>
<li><img src="images/4.gif" alt="" /></li>
</ul>

  • Call the function below onload

slideMenu.build('sm',200,10,10,1)">

  • That’s all.

Parameters:

  • First: id of the unordered list
  • Second: width of the accordion
  • Third: timeout variable to control how quickly the sliding function is called
  • Fourth: speed of the accordion with 1 being the fastest
  • Fifth: is the integer that corresponds to the section you would like to be expanded when the accordion is loaded (optional)

iPod-like jQuery drilldown menu provides easy navigation of complex and multi-level menus.

The menu sits within a fixed-size area, and when a node is selected, breadcrumb links appear above the menu options to both deliver feedback and allow quick access back to nodes higher up in the hierarchy.

An iPod-style slide transition helps providing the feelthat you’re moving forward into the data, or backward into higher-level data.

jQuery iPod Menu

This menu is specifically useful in browsing deeply nested hierarchies, particularly those more than three levels deep. It also provides a more usable alternative to multi-level fly-out menus, which can present challenges to those with limited manual dexterity.

It is not coded for ease of modification, but is free to reuse and modify with a proper attribution to Filament Group. Feel free to visit the demo page and view the source code to see how it works

Tabbed content areas are a popular solution for the "lots of content – few space" problem.

Nettuts, a great tutorial website about web design & development has a nice example of creating a tabbed content area with jQuery & CSS.

JavaScript Tab Content

When clicked to the tabs, content area switches to the new content with a slick accordion type effect.

Besides getting the ready to use codes from the tutorial, you can see how every step of the project is completed.

Here is the final demo of this tabbed content area.

Dock menus are very handy when it comes to limited space in designs. They just appear when needed and this idea expands the website area so much.

Webber 2.0 Dock Menu is a nice JavaScript docking menu which is easy to implement and does not require any JavaScript frameworks.

Dock Menu

It is built with the Philippe Maegerman’s tween class. The logic of the menu is very simple:  an empty div which determines the mouseover area for the docking effect and that’s it. Simple but very functional.

Uptime Robot
feed-holder
FeedBurner
PHP Form Generator
PSD2HTML.com
HotScripts Marketplace