N.Design Studio

CSS Dock Menu

Filed in: Design, Mac Jump to comments

CSS dock menu

If you are a big Mac fan, you will love this CSS dock menu that I designed. It is using Jquery Javascript library and Fisheye component from Interface and some of my icons. It comes with two dock styles - top and bottom. This CSS dock menu is perfert to add on to my iTheme. Here I will show you how to implement it to your web page.

Download CSS Dock Menu

(View Demo)
Zip package included JS, CSS, and icons

1. Download source files

Download the CSS dock menu zip package.

2. Insert code

In between the HTML <head> tag, add the following code

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/interface.js"></script>

<link href="style.css" rel="stylesheet" type="text/css" />

<!--[if lt IE 7]>
<style type="text/css">
.dock img { behavior: url(iepngfix.htc) }
</style>
<![endif]–>

The first part is the Javascript, second part is CSS stylesheet, and last part is the PNG hack for IE 6.

3. Configuration

Don’t forget to add the following code to anywhere within the <body> tag:

<script type="text/javascript">
$(document).ready(
function()
{
$(’#dock2′).Fisheye(
{
maxWidth: 60,
items: ‘a’,
itemsText: ’span’,
container: ‘.dock-container2′,
itemWidth: 40,
proximity: 80,
alignment : ‘left’,
valign: ‘bottom’,
halign : ‘center’
}
)
}
);
</script>

4. Add or remove item

To add menu item to the top dock (note: span tag is after the img tag):

<a class="dock-item" href="#"><img src="images/home.png" alt="home" /><span>Home</span></a>

To add menu item to the bottom dock (note: span tag is before the img tag):

<a class="dock-item2" href="#"><span>Home</span><img src="images/home.png" alt="home" /></a>

Browser Compatibility

I have tested on IE 6, IE 7, Opera 9, Firefox 2, and Safari 2 (although there are some minor rendering issues with Safari).

592 comments so far

Pages: « 6039 38 37 36 35 [34] 33 32 31 30 291 » Show All

  1. Gravatar
    dressup
    # 332

    November 10th, 2007 at 8:24 pm

    Wonderfull,I certainly will try this menu
    Thanks

  2. Gravatar
    Sezer
    # 331

    November 8th, 2007 at 12:00 pm

    thank you so much. but it isnt work with any ajax code like “ajax tab content, light box”. a fix needed.

  3. Gravatar
    pabsso
    # 330

    November 6th, 2007 at 1:46 pm

    i think that it is good

  4. Gravatar
    jadadde
    # 329

    October 31st, 2007 at 6:45 am

    this is just great! outstanding, easy to change the icons and publish… jeez! thanks

  5. Gravatar
    Veeqi
    # 328

    October 29th, 2007 at 8:42 am

    nice..very
    thanks!

  6. Gravatar
    Bojja Kalyan
    # 327

    October 22nd, 2007 at 11:05 pm

    What is license ? can it be used in any website ?

  7. Gravatar
    Alex
    # 326

    October 19th, 2007 at 6:45 pm

    Thank you, Nick, for your great job! Amazing flash work! You’re really one of the best in the world! I like clean, neat and nice design job of yours. And you are a good artist.

  8. Gravatar
    Visitor441
    # 325

    October 19th, 2007 at 10:08 am

    I could not find this site in the Search Engines index

  9. Gravatar
    Anand Kumar
    # 324

    October 19th, 2007 at 12:34 am

    This is a great dock design … I’ve applied it very well.
    I like your effects in design.

    Thank’s

  10. Gravatar
    Ron
    # 323

    October 18th, 2007 at 11:43 am

    Interferres with lightbox, any fix? Great job though….

Pages: « 6039 38 37 36 35 [34] 33 32 31 30 291 » Show All

Post your comment





Categories