Css
The effect is as follows:
1, download all the contents of this example:
Click here to download the source file
2. Insert Code:
Put the following code in the
<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]–>
3. Set
Put the following code in 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. Adding or removing items
<a class= "Dock-item" href= "><span>home</span></a>
<a class= "dock-item2" href= "><span>home</span></a>
Browsers allowed: IE 6, ie 7, Opera 9, Firefox 2, Safari 2
Original connection:Http://www.ndesign-studio.com/blog/mac/css-dock-menu